Description of problem: Platform issue for GTNWSRP-353 Calling the getPortletProperties method fails with a NullPointerException if setPortletProperties has been called before for the same portlet handle, including a property not declared in portlet.xml. Steps to Reproduce: 1. invoke v1:clonePortlet to get the portlet handle 2. invoke v1:setPortletProperties using this handle. The important part here is to add a portlet property which is NOT defined in the portlet.xml file 3. invoke v1:getPortletProperties using the portlet handle Actual results: ERROR [org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] SOAP request exception java.lang.NullPointerException at org.gatein.wsrp.producer.handlers.PortletManagementHandler.getPortletProperties(PortletManagementHandler.java:606) at org.gatein.wsrp.producer.WSRPProducerImpl.getPortletProperties(WSRPProducerImpl.java:295) at org.gatein.wsrp.endpoints.v1.PortletManagementEndpoint.getPortletProperties(PortletManagementEndpoint.java:380) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) Expected results: getPortletProperties returns the list of portlet properties Additional info:
Fix should be included in JPP 6.1 ER1
Created attachment 793195 [details] Test files
Verified in ER05. I've followed steps from readme.txt from Test files attachment.