Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-24227

Remove public render parameters not workin

    Details

      Description

      Calling

      public void removePublicRenderParameter(String name)

      on ActionResponse does NOT remove the public render parameter.

      In StateAwareResponseImpl.java, I have the following items in the _publicRenderParameters object

      {p_r_p_853341136_hierarchyFeatureId=[Ljava.lang.String;@2f378a22, p_r_p_853341136_hierarchyNodeId=[Ljava.lang.String;@162f368e}

      The line that attempts to remove the public render parameters is

      _publicRenderParameters.remove(key);

      this does nothing as the key generated is:

      (java.lang.String) http://www.esprit-is.com/sharecaredirect_KEY_hierarchyFeatureId

      I think what it should actually be calling is:

      _publicRenderParameters.remove(PortletQNameUtil.getPublicRenderParameterName(qName));

      as this will match one of the key values in the public render parameters map.

      PortletQNameUtil.getPublicRenderParameterName(qName)

      produces the value

      (java.lang.String) p_r_p_853341136_hierarchyFeatureId

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michael.young Michael Young
              Reporter:
              richard.gibson Richard Gibson (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                9 years, 25 weeks, 2 days ago

                  Packages

                  Version Package
                  6.1.1 CE GA2
                  6.1.20 EE GA2
                  6.2.0 CE M2