Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1221

url-charset="MS949" did not work in ajp-listener from EAP 7.0 CP3

XMLWordPrintable

      Korean and blank did not printout correctly when the jsp is called with korean parameter (GET method) after applying EAP 7.0 latest CP 8.
      When the jsp was called with http-listener, it was ok. The issue was only in ajp-listener.
      The issue was from EAP 7.0 CP3 - refer to below test case.

      Attached sample application : eap7.war.tar.gz

        • Testcase

      [index.jsp]
      ~~~~~
      <%@ page language="java" contentType="text/html; charset=MS949" pageEncoding="MS949" %>
      <html>
      <head><title>Test App</title>
      </head>
      <body>
      <%

      request.setCharacterEncoding("MS949");
      out.print("param p=[" + request.getParameter("p") + "]");

      %>
      </body>
      </html>
      ~~~~~

      [server.log]
      ~~~~~~~~~~~~~~~~~~~~~~~~~
      [Standalone] =
      awt.toolkit = sun.awt.X11.XToolkit
      file.encoding = MS949
      ...
      ~~~~~~~~~~~~~~~~~~~~~~~~~

      [standalone.xml]
      ~~~~~
      <ajp-listener name="ajp" url-charset="MS949" no-request-timeout="10000" socket-binding="ajp"/>
      <http-listener name="default" url-charset="MS949" socket-binding="http" redirect-socket="https"/>
      ~~~~~

      Browser : Crome, Firefox, IE

      A. EAP 7.0 CP2 (8080) & Apache/2.4.10 (Fedora, 80) with mod_cluster
      http://xx.xx.xx.xx:8080/eap7/index.jsp?p=한 글
      ->
      param p=[한 글]

      http://xx.xx.xx.xx/eap7/index.jsp?p=한 글
      ->
      param p=[한 글]

      B. EAP 7.0 CP3 (8080) & Apache/2.4.10 (Fedora, 80) with mod_cluster
      http://xx.xx.xx.xx:8080/eap7/index.jsp?p=한 글
      ->
      param p=[한 글]

      http://xx.xx.xx.xx/eap7/index.jsp?p=한 글
      ->
      param p=[\%20]

      C. EAP 7.0 CP8 (8080) & Apache/2.4.10 (Fedora, 80) with mod_cluster
      http://xx.xx.xx.xx:8080/eap7/index.jsp?p=한 글
      ->
      param p=[한 글]

      http://xx.xx.xx.xx/eap7/index.jsp?p=한 글
      ->
      param p=[\%20]

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              sdouglas1@redhat.com Stuart Douglas (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: