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

FileEntryId is not updated in Article contents during import

    Details

      Description

      Steps to reproduce:

      1. Create site test_site1
      2. Upload an image to Documents and Media
      3. Create a structure with a ddm-image field in it
      4. Create a template for the structure with an image script in it (something like this to display the fileEntryId)
      <#if Imagee5oc.getData()?? && Imagee5oc.getData() != "">
      ${Imagee5oc.getAttribute("fileEntryId")}
      <img alt="${Imagee5oc.getAttribute("alt")}" data-fileentryid="${Imagee5oc.getAttribute("fileEntryId")}" src="${Imagee5oc.getData()}" />
      </#if>
      
      1. Create a Web Content article using the structure, use the uploaded image, Publish it
      2. Go to the Web Content, and Preview it, to check the fileEntryId
      3. Export the test_site1 (Documents and Media, Web Content)
      4. Create site test_site2 and import the LAR file to it.
      5. See the imported Web Content's Preview again with the fileEntryId in it

      Expected behavior: The fileEntryId of the imported Web Content article should be different from test_site1's fileEntryId.

      Actual behavior: The fileEntryId is the same.

        Attachments

          Activity

            People

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

              Dates

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

                Packages

                Version Package
                7.0.0 DXP FP55
                7.0.0 DXP SP9
                7.0.X