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

Bug 952129

Summary: GetPortletPropertyDescription is missing non-portlet.xml declared properties
Product: [JBoss] JBoss Enterprise Portal Platform 5 Reporter: Martin Weiler <mweiler>
Component: PortalAssignee: claprun <claprun>
Status: CLOSED WONTFIX QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.2.1.GA, 5.2.2.GACC: epp-bugs, theute
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: 2013-04-17 12:17:18 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-15 09:21:45 UTC
Description of problem:
Platform issue for GTNWSRP-360: Calling getPortletPropertyDescription only contains properties declared in portlet.xml, but is missing properties which have been added by a prior call to setPortletProperties.


How reproducible:
Always

Steps to Reproduce:
1. ClonePortlet Call -> Success
2. SetPortletProperties Call -> Success (Added a new Porperty TESTING)
3. GetPortletProperties Call -> Success (After the fix for GTNWSRP-353) 
4. GetPortletPropertyDescription Call -> Success (But the New Property TESTING is missing)
  
Actual results:
List of portlet properties defined in portlet.xml

Expected results:
All portlet properties (portlet.xml + newly added ones from setPortletProperties call)

Additional info:

Comment 1 Martin Weiler 2013-04-17 12:17:18 UTC
Closing as Won't fix, as the GateIn WSRP implementation is spec compliant. Section 7.14 - getPortletPropertyDescription Operation - of the WSRP 2.0 specification says: 

"This operation allows the Consumer to discover the published properties of a Portlet and information (e.g. type and description) that could be useful in generating a user interface for editing the Portlet's configuration."

In one of the previous sections, the 'published properties' are defined as "Properties that are declared in the metadata specific to a Portlet.". This means that only those properties which are declared in the portlet deployment descriptor (portlet.xml) are considered part of the published interface of a portlet, and are therefore returned by the getPortletPropertyDescription method. Portlet properties which are added only by the setPortletProperties method are not part of this published interface. Furthermore, there is no additional information or description about these properties available, so there would be nothing to return, besides the property name.

If the getPortletPropertyDescription should return all available properties of a portlet, then these need to be declared in the deployment descriptor.

Comment 2 JBoss JIRA Server 2013-04-17 12:18:11 UTC
Martin Weiler <mweiler> updated the status of jira GTNWSRP-360 to Resolved