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

PortletURLImpl.shortenURL removes non nested redirect parameters

    Details

      Description

      When building a Portlet URL, if it results longer than _URL_MAXIMUM_LENGTH=2083 (due IE URL length limits) we try to shorten it by recursively removing nested redirect parameters (such as redirect or backURL) with the shortenURL() method.

      In some cases, this method removes non-nested redirect parameters, resulting in a failure in the function of the corresponding param. You can reproduce a case by following these steps:

      1. Login as an Admin
      2. Go to Control Panel -> Dynamic Data Lists
      3. Click at "Manage Data Definitions"
      4. Click at "Add"
      5. Enter the required data and click Save. Instead of being redirected to the previous view, you remain at the add view.

      This particular issue is described at LPS-27789

      Looking at the URL of the Add button (see step 4), the redirect parameter is missing even though it has been added to the portlet:renderURL at /dynamic_data_mapping/toolbar.jsp. Debugging the code, it is confirmed that the param is removed at the shortenURL() function.

      See attached file for expected URL and obtained URL for the Add button in the described example.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              he.song Serena Song (Inactive)
              Reporter:
              eduardo.garcia Eduardo García
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                8 years, 15 weeks, 5 days ago

                  Packages

                  Version Package
                  6.1.1 CE GA2
                  6.1.20 EE GA2
                  --Sprint 11/12
                  6.2.0 CE M2