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

Web content that contains an absolute link to another site is changed upon importation into a new site

    Details

      Description

      Issue
      Import fails if web content to import has a link to a third site page

      Steps to reproduce

      1. Start a clean bundle
      2. Create a new Site1 with a new public page (e.g. HOME)
      3. Create a new Site2 with a new public page (e.g. HOME2) and add a Web Content Display portlet
        Make sure page name is unique!
      4. Go back to default DXP site
      5. Create a new web content. In its content, add a link to Site1's page
        <p><a href="http://localhost:8080/web/site1/home">link to site1</a></p>
      1. Add a new Web Content Display portlet and select the created content
      2. From the WCD portlet, export it and download the lar file
      3. Go to Site2
      4. From WCD portlet, import the lar file

      Expected results
      Web Content is imported successfully

      Actual results
      Import fails with "The Web Content Article: wc1 has missing reference(s) that could not be found during the process." and NoSuchLayoutException is thrown in logs (see attached)

      Reproduced in
      de-23
      7.0.x (97e2f9882be177e56aaa31330423dc4d2862fa63)

      Not Reproduced in
      master (78a937b797bf508d33d20ef53eff7871838d9e92) Import does not fail but link's URL is incorrectly modified

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.0.0 DXP FP33
                  7.0.0 DXP SP7
                  7.0.5 CE GA6
                  7.0.X
                  7.1.X
                  Master