Uploaded image for project: 'Pluto'
  1. Pluto
  2. PLUTO-678

TCK: Contesting V2AddlRequestTests_SPEC2_11_Render_parameters13 and V3HeaderPortletTests_SPEC15_Header_parameters13

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.1
    • tck
    • None

    Description

      The TCK test cases V2AddlRequestTests_SPEC2_11_Render_parameters13 and V3HeaderPortletTests_SPEC15_Header_parameters13 attempt to test the following requirement as declared in Portlet Spec 3.0 chapter 11.2:

      If a portlet receives a render request that is the result of invoking a render URL targeting this portlet the render parameters received with the render request must be the parameters set on the render URL.

      It does this by first setting parameters into a render URL (the URL itself is also set as a parameter):

      PortletURL rurl = portletResp.createRenderURL();
      rurl.setParameters(portletReq.getPrivateParameterMap());
      rurl.setParameter("tr2", "true");
      rurl.setParameter("renderURLTr2", rurl.toString());
      

      and then checking the parameter from RenderRequest:

      portletReq.getParameter("renderURLTr2").contains("tr2:" + portletReq.getParameter("tr2"))
      

      The problem is, the checking logic assumes the parameter in a URL is represented in the form "parameterName:parameterValue", which is the case for Pluto. However, in Liferay, this logic fail because Liferay uses the form "parameterName=parameterValue".

      Attachments

        Activity

          People

            ngriffin7a Neil Griffin (Inactive)
            dantewang Dante Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: