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

Link to page - Keep getFriendlyUrl method compatible with previous versions

    Details

      Description

      Before LPS-38993 the articles didn't contain the linked layout groupId.

      getFriendlyUrl method assumes that the groupId is there, and if not, it is not able to produce the link to the layout.

      Reproducing this issue is not straightforward, as we need articles from a previous version.
      Here is a possible use case for testing:

      1. Create a Structure with a Link to page field
      2. Create a Template for the Structure
      3. Create a Web Content from the Structure
      4. Display the Web Content on a page, verify the generated link.
      It will be something like this : http://localhost:9080/web/guest/home

      5. Shut down the portal
      6. Modify the database: search for the related data in journalarticle table content field : 1@public@10182
      7. Delete the groupId -> 1@public
      8. Restart the portal
      9. Check the link, it's not friendly anymore : http://localhost:9080/web/10182/1

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 37 weeks, 1 day ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.2 CE GA3
                  6.2.X EE
                  7.0.0 M2