Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-28138

url-charset="MS949" does not work in AJP listener

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • None
    • None
    • Undertow
    • None
    • False
    • None
    • False
    • Regression
    • +
    • Customer Facing, QE Confirmed

      Reproducer is same as in the original issue JBEAP-13750 with JSP page:

      <%@ page language="java" contentType="text/html; charset=MS949" pageEncoding="MS949" %>
      <%
      
      request.setCharacterEncoding("MS949");
      out.print("param p=[" + request.getParameter("p") + "]");
      
      %>
      

      The current output is:

      InvalidCharsRequestIT.allowKoreanCharsOverAjpTest:232->testAllowUnescapedKoreanChars:309 
      Expected: a string containing "param p=[한 글]"
           but: was "HTTP/1.1 200 OK
      Connection: close
      X-Powered-By: JSP/3.1
      Set-Cookie: JSESSIONID=A6uy_qh9h2-mBRsmKn11gxSmCN8Aje0dEJ537jA0.rhos-d-rhel8-medium-390; path=/invalid-chars
      Content-Type: text/html;charset=MS949
      Content-Length: 13
      Date: Wed, 02 Oct 2024 08:15:42 GMT
      
      param p=[\ �]"
      

      This is a regression which can be observed with latest WildFly 34 builds (possibly from Beta1).

              mpetrov@redhat.com Michal Petrov
              jkasik@redhat.com Jan Kašík
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: