-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: Master
-
Fix Version/s: 7.1.10 DXP FP9, 7.1.10.2 SP2, 7.1.3 CE GA4, 7.1.X, Master
-
Component/s: Core Infrastructure > MVC Portlet
-
Branch Version/s:7.1.x
-
Backported to Branch:Committed
-
Fix Priority:5
-
Git Pull Request:
-
QA Test Score:4
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:
- Go to Build > Pages
- Edit the permission for Welcome page
- Remove view permission for Site Member role
- 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