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

Exporting/import doesn't work properly for layout friendly URLs that don't include the servlet mapping and group friendly URL

    Details

      Description

      Description
      When exporting and importing content that has URL references to other pages, we attempt to export or include a dependency on those referenced pages. However, our logic fails to handle the case where the URL only includes the layout friendly URL, and not the servlet mapping or the group friendly URL (for instance, because the layout is on the default site). We should improve our logic to handle this case.

      Steps to reproduce
      1. Start up Liferay and log in as the admin user.
      2. On the default "/guest" site, create 2 blank widget pages named “page1” and “page2”
      3. On the default "/guest" site, create a basic web content. Click on Content > Code View (</>), and add a link to page2 using the following format:
      <a href="/page2" target="_blank">page2</a>
      4. Add the web content to a web content display widget on page1
      5. Verify that clicking on the web content link navigates to page2
      6. Navigate to Site Administration > Publishing > Export and export public pages, including web contents.
      7. In a new bundle, create a new blank site called “Test”
      8. Import public pages into Test
      9. Click on link.
      Expected Result: You would be taken to page2 of the Test site that you just imported public pages for.
      Actual Result: You are taken the the default site and a Not Found error occurs.

        Attachments

          Activity

            People

            Assignee:
            gabor.lovas Gábor Lovas
            Reporter:
            michael.bowerman Michael Bowerman
            Participants of an Issue:
            Recent user:
            Clarissa Velazquez
            Engineering Assignee:
            Michael Bowerman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              24 weeks, 1 day ago

                Packages

                Version Package
                7.1.10 DXP FP26
                7.1.10.7 SP7
                7.1.X
                7.2.10 DXP FP15
                7.2.X
                7.3.10.3 DXP SP3
                7.3.X
                7.4.13 DXP GA1
                7.4.3.4 CE GA4
                Master