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

TCK: Contesting V2ResponseTests_MimeResponse_ApiRender_setContentType4 and V2ResponseTests_RenderResponse_ApiRender_setContentType2

    XMLWordPrintableJSON

Details

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

    Description

      V2ResponseTests_MimeResponse_ApiRender_setContentType4 and V2ResponseTests_RenderResponse_ApiRender_setContentType2 simply try to call portletResp.setContentType("Invalid") in order to verify that IllegalArgumentException is thrown.

      While these tests are verifying a requirement as to validity of a content-type value, they execute after MimeResponse.getWriter() has been called. This conflicts with the JavaDoc requirements in MimeResponse.setContentType(String) which state:

      The portlet should set the content type before calling getWriter() or getPortletOutputStream().

      The fix would be to re-order the test code so that the TCK calls portletResp.setContentType("Invalid") prior to calling getWriter().

      Attachments

        Activity

          People

            ngriffin7a Neil Griffin (Inactive)
            ngriffin7a Neil Griffin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: