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

When using the "Image" fragment in a Content Page, it's src property will include the version.

Details

    Description

      Issue
      After the used image is updated with a new image, the Image fragment will still render the old image instead.

      Steps to reproduce

      1. Setup Liferay DXP 7.2 + FixPack 3
      2. Star Liferay
      3. Navigate to Content & Data > Documents and Media
      4. Add a any image
      5. Navigate to Site Builder > Pages
      6. Add a Content Page
      7. Navigate to content page added in step 6
      8. Add a "Image" basic component to the page
      9. Double click the image component and select "Image Properties"
      10. Select the image added in step 4
      11. Inspect the element with browser's developer feature

      Actual result
      src tag includes the version. The latest version of the image will not be displayed.

      Expected result
      src tag does not include the version. The latest version of the image will always be displayed.

       

      Background
      It is possible to edit images in Document and Media and each will have its own version.

      If using version-agnostic URL, the latest version will be rendered.
      If a version is specified, the proper version will be displayed 

      Current behavior
      With Web Content (structure with image field) or AP, the version is not included.
      When using the "Image" fragment in a Content Page, it's src property will include the version.

      Attachments

        Activity

          People

            brian.chan Brian Chan
            ekaterina.nesterovich Ekaterina Nesterovich (Inactive)
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              2 years, 35 weeks ago

              Packages

                Version Package
                7.2.10 DXP FP5
                7.2.10.2 DXP SP2
                7.2.X
                7.3.0 CE GA1
                7.3.1 CE GA2
                7.3.2 CE GA3
                7.3.10 DXP GA1
                Master