Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-86885

lfr-editable image field displays "missing image icon" if the image was not previously added to documents and media

    Details

      Description

      Reproduced on:
      Tomcat 9.0.10 + MySQL 5.7. Portal 7.1.x-private GIT ID: bba0cfd4f6ebb469a74562d0fd620aa4eeaa4cdc.

      Not reproducible on:
      Tomcat 9.0.10 + MySQL 5.7. Portal master GIT ID: 6a6d1b7557de3a5b6d7b63eae6cf8ee40d0c35a0.
      Tomcat 9.0.6 + MySQL 5.7. Portal 7.1.10 Fix Pack 2.

      Steps to reproduce:

      1. Add a fragment that has an lfr-editable image field
      2. Add a content page that uses that fragment
      3. Add an image to the fragment but rather than selecting an existing image in documents and media, add a new image

      Expected result:
      The image displays properly.

      Actual result:
      The missing image icon appears. Viewing the page will also show the missing image icon. Going back to edit the content page again will display the image, but going back to the live page view will still show the missing image icon.

      • The workaround is to upload the image to documents and media first.

      • Going into the HTML and removing the "&imagePreview=1" portion of the URL will cause the image to display properly.

        Attachments

        1. Actual.gif
          Actual.gif
          7.47 MB
        2. Edit URL.gif
          Edit URL.gif
          823 kB

          Activity

            People

            Assignee:
            chao.wang Chao Wang
            Reporter:
            brian.chiu Brian Chiu (Inactive)
            Participants of an Issue:
            Recent user:
            Chao Wang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              17 weeks, 5 days ago

                Packages

                Version Package
                7.1.X