Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-74114 Make Liferay compatible with version 2.0 tests in the Portlet 3.0 TCK
  3. LPS-76715

Portlet 3.0 TCK: Set character encoding via the setLocale method and a locale-encoding-mapping-list mapping in the web.xml deployment descriptor

    Details

      Description

      Test Result:

      There is 1 failure in Portlet 3.0 TCK test V2AddlResponseTests:

      Test case V2AddlResponseTests_SPEC2_12_Resource_characterEncoding2: Details: The character encoding can be set via the setLocale method and a locale-encoding-mapping-list mapping in the web.xml deployment descriptor. Failed because character encoding is not "iso-8859-16" but UTF-8

      Background:

      According to Portlet Spec 3.0, Ch 15.7.1,

      The portlet can set the character encoding for a resource response in several ways:

      • Using the setCharacterEncoding method.
      • Using the setContentType method. Calls to setContentType set the character encoding only if the given content type string provides a value for the charset attribute.
      • Using the setLocale method and a locale-encoding-mapping-list mapping in the web.xml deployment descriptor. Calls to setLocale set the character encoding only if neither the setCharacterEncoding nor the setContentType method has previously set the character encoding.

      In Liferay, the locale-encoding-mapping-list mapping in the web.xml deployment descriptor is not read. And in the setLocale method, the related code for setting character encoding is not implemented.

        Attachments

          Activity

            People

            Assignee:
            brian.chan Brian Chan
            Reporter:
            leon.chi Leon Chi
            Recent user:
            Csaba Turcsan
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 49 weeks, 1 day ago

                Packages

                Version Package
                7.0.0 DXP FP36
                7.0.0 DXP SP7
                7.0.5 CE GA6
                7.0.X
                Master