Uploaded image for project: 'JBoss Enterprise Portal Platform'
  1. JBoss Enterprise Portal Platform
  2. JBEPP-71

Response.setProperty is not resetting the value as per the api doc

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.3.0.GA_CP1
    • Fix Version/s: 4.3.0.GA_CP2
    • Component/s: Portal
    • Labels:
      None

      Description

      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."

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mageshbk Magesh Bojan
                  Reporter:
                  mageshbk Magesh Bojan
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: