Uploaded image for project: 'MyFaces Portlet Bridge'
  1. MyFaces Portlet Bridge
  2. PORTLETBRIDGE-226

requestProcessingNonFacesTest specifies charset in JSP

    XMLWordPrintableJSON

Details

    • TCK Challenge
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.1, 3.0.0
    • TCK
    • None
    • Liferay Portal + Liferay Faces Bridge

    Description

      [Test Challenger Name and Company]
      Neil Griffin, Liferay, Inc.

      [Specification Name(s) and Version(s)]
      Portlet 2.0 Bridge for JavaServerâ„¢ Faces 1.2

      [Test Suite Name and Version]
      portlet-bridge-tck-main, v1.0.0

      [Exclude List Version]
      N/A

      [Test Name]
      requestProcessingNonFacesTest

      [Complaint (argument for why test is invalid)]

      If the TestPage017 (requestProcessingNonFacesTest) is successful, the output text should be the following:

      Detail: Expected response content type is text/html, actual value is text/html.

      However, under Liferay Portal the test fails with the following:

      Detail: Expected response content type is text/html, actual value is text/html; charset=UTF-8.

      The reason why is because the test contains a JSP file named chapter4_2_5Result.jsp that starts with the following directive:

      <%@ page contentType = "text/html; charset=UTF-8" ... %>

      ... and Liferay Portal has a feature that respects the contentType attribute of the page directive, which ultimately calls back into the Liferay implementation of MimeResponse.setContentType(String). That's why Liferay returns an actual value of "text/html; charset=UTF-8"

      Attachments

        Activity

          People

            mike_freedman Michael Freedman
            ngriffin7a Neil Griffin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: