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

Exporting LAR with WCM templates referencing image ID's may have invalid missing references

    Details

      Description

      If there are any existing "DL File Entries" and a web content template contains any of the following patterns, then when exporting the template in a LAR, an invalid DL File Entry will be retrieved and the LAR will contain a missing reference.

      Possible such patterns:
      "<context-path>/c/document_library/get_file?", "<context-path>/documents/", or "<context-path>/image/image_gallery?"

      Steps to reproduce:
      1. Create a new Web Content Structure
      2. Create a new Web Content Template based on the web content structure in step 1, containing the following: #"/image/image_gallery?img_id="+$unexecutedCodeHere()
      3. Export the Web Content portlet from the Control Panel
      4. Export the Web Content portlet again and examine the LAR file's manifest.xml

      Expected result: the LAR file simply contains references to the exported structure and template
      Actual result: the LAR file contains these references, but also contains a missing reference to an invalid DL File (an export background task), which will prevent importing the LAR properly

      Reproduced in 6.2.x: 844d3250b19d4a16e0a77bd5f00d45a84e16639d
      Reproduced in master: 7825119a3b081e38367eebf351bd1a8e0590110f

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shitian.zhang Shitian "Shelton" Zhang (Inactive)
              Reporter:
              alec.shay Alec Shay
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 29 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.1 CE GA2