LAR file export process
Written By
Sivakumar Perumal
How To articles are not official guidelines or officially
supporteddocumentation. They are community-contributed content and may
not alwaysreflect the latest updates to Liferay DXP. We welcome your
feedback toimprove How to articles!
While we make every effort to ensure this Knowledge Base is accurate,
itmay not always reflect the most recent updates or official
guidelines.We appreciate your understanding and encourage you to reach
out with anyfeedback or concerns.
Legacy Article
You are viewing an article from our legacy
"FastTrack"publication program, made available for
informational purposes. Articlesin this program were published without a
requirement for independentediting or verification and are provided
"as is" withoutguarantee.
Before using any information from this article, independently verify
itssuitability for your situation and project.
Issue
- LAR file is exported even when the web content's internal reference is missing.
- Steps to reproduce
1) Create a blank site "Test" and add a public page "Home".
2) Create a structure "Test-structure" and add a structure field "Link To Page".
3) Create a template "Test-template" and fetch the value of the "Link To Page" Structure field.
4) Create web content "Test-content" using structure and template created in step 2 & 3.
5) The web content should have the "Home" page in the "Link To Page" field as a value.
6) Save the content and then delete the page "Home"
7) Export the LAR
- Expected: Lar file export should fail
- Actual: Lar file export is successful
Resolution
-
The observed one is the intended behavior of Liferay DXP.
i.e. While exporting or importing, Liferay does not read/parse through the code written in Structure/Template. It completely exports/imports Web content along with their Structure and Template. Hence, the dependency of the Web content is on its structure and template, not on what's written inside the structure or template.
Did this article resolve your issue ?