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

Importing invalid LAR file results in infinite loop

    Details

      Description

      Reproduction Steps:

      Part 1: create an invalid LAR file
      (or use the attached invalid_72x.lar )

      1. Start up a new portal instance
      2. Create a new site
      3. Upload an image to document library
      4. Create a new basic web content, insert the image into it
      5. Export the whole site, download the LAR file
      6. Rename LAR file extension to ZIP and unzip it into a directory
      7. Delete all files and directories inside <LAR root folder>/group/<group ID>/com.liferay.document.library.kernel.model.DLFileEntry/
      8. ZIP the folders again, and rename it to LAR

      Part 2: import the invalid file

      1. Start up a new portal instance
      2. Create a new site
      3. Import the previously created invalid LAR file

      Expected result: The file is either successfully imported or the import fails with a single error
      Actual result: The import never finishes, the following error message is infinitely repeated in the logs:

      2020-12-17 09:52:25.550 ERROR [liferay/background_task-9][StagedModelDataHandlerUtil:610] Unable to get a staged model data handler for a null value because a model was not exported properly 
      

      Notes:

        Attachments

          Activity

            People

            Assignee:
            brian.chan Brian Chan
            Reporter:
            vendel.toreki Vendel Töreki
            Participants of an Issue:
            Recent user:
            Yunlin "Steven" Sun
            Engineering Assignee:
            Vendel Töreki
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              39 weeks, 1 day ago

                Packages

                Version Package
                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
                Master