PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-29574

If image/document already exist, Upload Image/Document From Web Content Portlet Issue will throw errors in log but and not display "image/document already exists or image already uploaded"

    Details

    • Branch Version/s:
      6.1.x, 6.0.x
    • Backported to Branch:
      Committed
    • Similar Issues:
      Show 5 results 

      Description

      When uploading the image/document from the web content portlet, which already exist, then it shows the the message "Upload a new file in this folder (Upload in progress, please wait...)".

      It doesn't show any message like, Image/Document Already exist or Image/Document already uploaded. It just showing the upload in progress.

      Steps to Reproduce:
      1) Add a image in document library through the control panel
      2) Add web content display portlet on a page
      3) Edit WCD portlet and select "image" icon to upload an image
      4) Select the image that was uploaded in the document library through the control panel
      5) Save portlet
      6) Edit the portlet
      7) Select the image icon and this time select the option to upload a document to the same location as the file that was added in the control panel
      8) The status of the upload will read: (Upload in progress, please wait...)and you will receive stack trace like the one I have uploaded

      Expected Behavior:

      That the editor would display something along the lines of "Image/Document Already exist or Image/Document already uploaded".

        Issue Links

          Activity

          Hide
          Michael Saechang added a comment -

          Committed on:
          Portal 6.2.x GIT ID: 2f9b2e4c34b605c51b3f6dffe1a76b5fa42f178b.

          Show
          Michael Saechang added a comment - Committed on: Portal 6.2.x GIT ID: 2f9b2e4c34b605c51b3f6dffe1a76b5fa42f178b.
          Hide
          Pani Gui (Inactive) added a comment -

          PASSED Manual Testing following the steps in the description.

          Reproduced on:
          Tomcat 7.0 + MySQL 5. 6.1.20 EE GA2.

          Displaying errors in the console when uploading same image or document from Web Content.

          Fixed on:
          Tomcat 6.0 + MySQL 5. Portal 6.0.x GIT ID: 8f85b2e9212db1d18e02f7f8263a24fca22e550a.
          Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 16e673497cc0fb17129d4a3ffcba3cdea602b4e5.
          Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 228bcefc4e621f15b8999134ca552897c128524d.

          Showing "A file with the same name is already available." message on the page instead of throwing errors in the console.

          Show
          Pani Gui (Inactive) added a comment - PASSED Manual Testing following the steps in the description. Reproduced on: Tomcat 7.0 + MySQL 5. 6.1.20 EE GA2. Displaying errors in the console when uploading same image or document from Web Content. Fixed on: Tomcat 6.0 + MySQL 5. Portal 6.0.x GIT ID: 8f85b2e9212db1d18e02f7f8263a24fca22e550a. Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 16e673497cc0fb17129d4a3ffcba3cdea602b4e5. Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 228bcefc4e621f15b8999134ca552897c128524d. Showing "A file with the same name is already available." message on the page instead of throwing errors in the console.

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 43 weeks, 1 day ago

                Development

                  Structure Helper Panel