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

Manually constructed URLs may be malformed due to wrongly inserted preserved parameters

    Details

      Description

      We are using PortalImpl.getLayoutURL(...) in multiple places to manually construct URLs. Since this method appends preserved parameters (such as doAsUserId) by itself, this can lead to broken URLs.

      Steps to reproduce:
      1) Create a page with the Blog portlet on it and add an entry
      2) Create a new user and impersonate that one
      3) Go to the previously created page and navigate to the entry
      Expected behavior: Parameters of the displayed Trackback URL are added at the end
      Actual behavior: A malformed Trackback URL is created (e.g. http://localhost:8080/web/guest/blog?doAsUserId=e7vOuS3v0BQ%3D/-/blogs/trackback/test)

        Attachments

          Activity

            People

            Assignee:
            hong.zhao Hong Zhao (Inactive)
            Reporter:
            daniel.reuther Daniel Reuther
            Participants of an Issue:
            Recent user:
            Csaba Turcsan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              4 years, 25 weeks ago

                Packages

                Version Package
                7.0.0 DXP FP19
                7.0.3 CE GA4
                7.0.0 DXP SP4
                7.0.X EE
                7.1.X
                Master