Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 947367

Summary: Reading properties for a portlet that contains non-portlet.xml declared properties leads to NPE
Product: [JBoss] JBoss Enterprise Portal Platform 5 Reporter: Martin Weiler <mweiler>
Component: PortalAssignee: Thomas Heute <theute>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5.2.2.GACC: epp-bugs
Target Milestone: ---   
Target Release: 5.2.3.GA   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-26 07:48:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Martin Weiler 2013-04-02 09:00:06 UTC
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: