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

TCK: Contesting tests that expect JspException to be thrown when the copyCurrentRenderParameters attribute contains a non-boolean value

    XMLWordPrintableJSON

Details

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

    Description

      The following tests have a try ... catch} block that assumes JspException will be thrown when invalid values are specified in portlet related tags.

      For example:

      <portlet:renderURL copyCurrentRenderParameters="invalid"/>
      

      -
      V2PortletTagLibraryTests2_SPEC2_26_IncludeJSPRender_actionURL22
      -
      V2PortletTagLibraryTests2_SPEC2_26_IncludeJSPRender_renderURL22
      -
      V2PortletTagLibraryTests3_SPEC2_26_IncludeJSPResource_actionURL22
      -
      V2PortletTagLibraryTests3_SPEC2_26_IncludeJSPResource_renderURL22

      Pluto's implementation of portlet:renderURL defines the copyCurrentRenderParameters attribute as a String, whereas Liferay defines it as a boolean. In the case of Liferay, an invalid value like "invalid" is simply coerced to a boolean.

      Since there is no requirement in the Portlet 3.0 Spec to throw JspException, recommend that the tests be removed from the TCK.

      Attachments

        Activity

          People

            msnicklous Scott Nicklous
            ngriffin7a Neil Griffin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: