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

Impossible to import multiple sites when they have circular references

    Details

      Description

      Reproduction Steps:

      1. Set up and start a portal

      2. Go to Control Panel --> Sites and create 2 sites with the following names: Site1 and Site2

      3. Create a page on Site1 called: Page1

      4. Create a page on Site2 called Page2

      5. In Site1: Go to Content --> Web content and create a basic web content: switch to source view and copy the below content:

      <p><a href="http://localhost:8080/web/site1">link to site1</a></p>
      
      <p><a href="http://localhost:8080/web/site2">link to site2</a></p>
      
      <p><a href="http://localhost:8080/web/site1/page1">link to site1 - page1</a></p>
      
      <p><a href="http://localhost:8080/web/site2/page2">link to site2 - page2</a></p>
      

      6. Add a Web Content Display Portlet to Site1, Page1 page and select the web content

      7. In Site2: go to Content --> Web Content and Create a basic web content, switch to source view and copy the below content:

      <p><a href="http://localhost:8080/web/site1">link to site1</a></p>
      
      <p><a href="http://localhost:8080/web/site2">link to site2</a></p>
      
      <p><a href="http://localhost:8080/web/site1/page1">link to site1 - page1</a></p>
      
      <p><a href="http://localhost:8080/web/site2/page2">link to site2 - page2</a></p>
      

      8. Add a WCD portlet to Site2, Page2 page and select the web content

      9. Export both Site1 and Site2 by going to Publishing --> Export

      10. Clean the environment (or delete Site1 and Site2)

      11. Create Site1 and Site2 again as empty sites

      12. Try to import the LAR file of Site1

      Actual Result: The import fails with the error:

      The file Public_Pages-20200117110747640 (1).lar cannot be imported.
       There are missing references that could not be found in the current site. Please import the following elements first:
       Page: Page2(Referenced by a Web Content Article: test)
      

      Expected Result:

      • The LAR file of Site1 of can be successfully imported (despite of containing missing references).
      • The LAR file of Site2 can be imported
      • All URL references inside the web contents remain correct

      Master @ 1991cde6e2f3ef10689a7b32c819cd91cf9faa55

        Attachments

          Activity

            People

            • Assignee:
              joyce.wang Joyce Wang
              Reporter:
              vendel.toreki Vendel Töreki
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
              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:
                30 weeks, 3 days ago

                Packages

                Version Package
                7.0.0 DXP FP91
                7.0.X
                7.1.X
                7.2.10 DXP FP5
                7.2.10.2 DXP SP2
                7.2.X
                7.3.1 CE GA2
                7.3.2 CE GA3
                Master