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

Portlet 3.0 incompatibility with PortalUtil.copyRequestParameters(ActionRequest,ActionResponse)

    Details

      Description

      Problem Background

      The PortalUtil.copyRequestParameters(ActionRequest,ActionResponse) method is designed to preserve action request parameters into the render request by calling StateAwareResponse.setRenderParameter(String, String[]). However, the Portlet 3.0 Javadoc for this method has a new requirement such that IllegalArgumentException must be thrown if "if an element of the values array is null; if an attempt is made to set a public render parameter to null." Because of this new requirement, the PortalUtil.copyRequestParameters(ActionRequest,ActionResponse) method needs to make sure it does not pass a null array or an array that contains a null value.

      Steps to Reproduce:

      1. Go to Build > Pages
      2. Edit the permission for Welcome page
      3. Remove view permission for Site Member role
      4. Click Save

      Expected Result:
      Success message occurs and no error in console.

      Actual Result:

       Error:Your request failed to complete.
      

      Error occurs when editing widget page permission.
      There's also Error in console:

      2019-03-06 05:52:21.337 ERROR [http-nio-9080-exec-9][PortletConfigurationPortlet:688] null
      

        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:
                  30 weeks, 5 days ago

                  Packages

                  Version Package
                  7.1.10 DXP FP9
                  7.1.10.2 SP2
                  7.1.3 CE GA4
                  7.1.X
                  Master