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

Image resource from an imported page fragment is not displayed correctly

Details

    Description

      Steps to reproduce

      1. Startup Liferay
      2. On the left-side menu, Navigate to Site(Liferay) > Design > Fragments
        1. Create a new Collection: test collection
          1. Navigate to Resources tab
            1. Add any image (e.g. test_image.png)
          2. Navigate to Fragments tab
            1. Add a fragment: test fragment
              1. In the HTML, add the following between the default div tags:
                <img src="[resources:test_image.png]"/>
              2. Notice the image in the preview
              3. Click Publish
      3. Navigate to Site(Liferay) > Site Builder > Pages
        1. Add a new Public Page (Template - Blank): test content page
          1. Add the created: test fragment to the page
          2. Notice the fragment with the image is displayed
          3. Click Publish
      4. Navigate to test content page
        1. Notice the image is displayed correctly
      5. Navigate to Site(Liferay) > Publishing > Export
        1. Export the page: test content page
        2. Click Export
        3. Download the exported lar file
      6. Shutdown Liferay
      7. Clean the Liferay bundle
        1. Delete the [$LIFERAY_HOME]/data folder
        2. Re-create your database if using an external database
      8. Startup Liferay
      9. Navigate to Site(Liferay) > Publishing > Import
        1. Import the previously exported lar file
      10. Navigate to the imported page: test content page

      Expected result
      The image is displayed correctly

      Actual result
      No image is displayed

      Attachments

        Issue Links

          Activity

            People

              yang.cao Yang Cao
              eric.yan Eric Yan
              Marta Elicegui Marta Elicegui
              Eric Yan Eric Yan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                2 years, 27 weeks, 3 days ago

                Packages

                  Version Package
                  7.1.10 DXP FP23
                  7.1.10.6 SP6
                  7.1.X
                  7.2.10 DXP FP10
                  7.2.10.4 DXP SP4
                  7.2.X
                  7.3.10 DXP FP1
                  7.3.10.1 DXP SP1
                  7.3.6 CE GA7
                  7.3.X
                  7.4.13 DXP GA1
                  Master