Bug 947371 - Reading properties for a portlet that contains non-portlet.xml declared properties leads to NPE
Summary: Reading properties for a portlet that contains non-portlet.xml declared prope...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Portal Platform 6
Classification: JBoss
Component: Portal
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ER05
: 6.1.0
Assignee: Default User
QA Contact: vramik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-02 09:02 UTC by Martin Weiler
Modified: 2013-11-07 14:22 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-11-07 14:22:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Test files (4.44 MB, application/zip)
2013-09-03 13:33 UTC, vramik
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker GTNWSRP-353 0 Major Resolved Reading properties for a portlet that contains non-portlet.xml declared properties leads to NPE 2014-03-07 11:45:07 UTC

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

Comment 1 Boleslaw Dawidowicz 2013-04-17 08:00:46 UTC
Fix should be included in JPP 6.1 ER1

Comment 3 vramik 2013-09-03 13:33:26 UTC
Created attachment 793195 [details]
Test files

Comment 4 vramik 2013-09-03 13:35:55 UTC
Verified in ER05. I've followed steps from readme.txt from Test files attachment.


Note You need to log in before you can comment on or make changes to this bug.