-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.2.X, 7.3.X, Master
-
Fix Version/s: 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
-
Component/s: Staging > Export/Import
-
Branch Version/s:7.3.x, 7.2.x
-
Backported to Branch:Committed
-
Fix Priority:3
-
Git Pull Request:
Reproduction Steps:
Part 1: create an invalid LAR file
(or use the attached invalid_72x.lar )
- Start up a new portal instance
- Create a new site
- Upload an image to document library
- Create a new basic web content, insert the image into it
- Export the whole site, download the LAR file
- Rename LAR file extension to ZIP and unzip it into a directory
- Delete all files and directories inside <LAR root folder>/group/<group ID>/com.liferay.document.library.kernel.model.DLFileEntry/
- ZIP the folders again, and rename it to LAR
Part 2: import the invalid file
- Start up a new portal instance
- Create a new site
- 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:
- We don't exactly know how the invalid LAR file was created in the first place, that can be part of another investigation
- cause of the issue is this loop in DLReferencesExportImportContentProcessor