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

Broken hyperlinks in basic webcontent after import

    Details

      Description

      On Liferay environment A

      1.) Create a site "Site1" using site URL "/site1"
      2.) In site "Site1" create a public page called "Page1" using page friendly url "/page1"
      3.) Create a site "Site2" using site Friendly URL "/site2"
      4.) Within this site create a basic web content called "Page2" (add some letter to the html filed and make it a hyperlink with /web/site1/page1) and place it on a private page
      5.) Export private pages of site "Site2" including its web content and export public pages of the site "Site1".

      On Liferay environment B

      1.) Create empty sites "Site1" and "Site2" as described for environment A using the site urls as mentioned
      2.) In site "Site1" import LAR file create in environment A
      3.) In site "Site2" import LAR file created in environment A

      Result: Check contents of web content article "Page2" and notice that included hyperlink "/web/site1/page1" got changed into "web/site2/page1"

      Also tested:

       7.0x @ commit (9643fdb87605e3c59cbafeb71326547d39ec36cd) reproduced

       master @ commit (9f2cbbd236513332dca1ef619bca3dec6616a4c1) reproduced

       

      After a quick investigation we found out that the link in the LAR file of Site2 contains the UUID of Site1 in Environment A. This UUID cannot be found in Environment B, so it falls back to the name of the currently imported site (Site2).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lori.liu Lori Liu (Inactive)
                Reporter:
                vendel.toreki Vendel Töreki
                Participants of an Issue:
                Recent user:
                Csaba Turcsan
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 31 weeks, 6 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP46
                  7.0.6 CE GA7
                  7.0.0 DXP SP8
                  7.0.X
                  7.1.X
                  Master