Bug 792991 (JBEPP-71)

Summary: Response.setProperty is not resetting the value as per the api doc
Product: [JBoss] JBoss Enterprise Portal Platform 4 Reporter: Magesh Bojan <mageshbk>
Component: PortalAssignee: Magesh Bojan <mageshbk>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 4.3.0.GA_CP1CC: epp-bugs
Target Milestone: ---   
Target Release: 4.3.0.GA_CP2   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBEPP-71
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-05-06 11:45:42 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:
Bug Depends On:    
Bug Blocks: 792993    

Description Magesh Bojan 2009-05-06 05:59:45 UTC
project_key: JBEPP

Calling ActionResponse.setProperty or RenderResponse.setProperty does not reset the property value. The reason is that the PortletResponseImpl.setProperty calls addProperty which in turn calls getProperties().getTransportHeaders().addValue(key, value) rather than resetting it by calling getProperties().getTransportHeaders().setValue(key, value).

http://docs.jboss.com/jbportal/v2.7.0/javadoc-bundle/portlet/javax/portlet/PortletResponse.html#setProperty(java.lang.String,%20java.lang.String)

"This method resets all properties previously added with the same key."

Comment 1 Magesh Bojan 2009-05-06 06:00:20 UTC
Link: Added: This issue depends JBPORTAL-2386


Comment 2 Magesh Bojan 2009-05-06 12:31:21 UTC
Link: Added: This issue is a dependency of JBEPP-73