Issue
- Customer reports images are gone after they published content
- It could be images or files from the Document Library
Environment
- Liferay DXP 7.2
Resolution
- If the publication took a lot of time it is very likely the cause of this behavior is the use of the option "Delete Application Data Before Importing" during the publication task.
- This will delete all staged data on the Live Site prior to running the publish logic. The purpose of this option is to effectively "reset" the Live Site for the case that the Live Site somehow became out of sync with the Staging Site.
- Unfortunately, deleting Web Content articles is a very involved process because of the Web Content versioning system causing Liferay to need to fetch the earlier version of the article and update the associated AssetEntry accordingly. So if they have a large number of Web Content articles in the Live Site, this process to delete them all may take a long time.
- The only option to solve this behavior is not use this option on the publication and do a "From Last Publish Date" publish process instead.
Additional Information