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

Servlet request.getReader and response.getWriter don't correctly take into account the encoding set at ServletContext level

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.0.22.Final
    • 2.0.21.Final
    • Servlet
    • None

    Description

      Related/similar to UNDERTOW-1540

      The user in this forum thread https://developer.jboss.org/message/989396#989396 notes that the reader/writer obtained via the request/response on a servlet doesn't use the correct charset, when the charset is set at the ServletContext level (through the use of setRequestCharacterEncoding and/or setResponseCharacterEncoding)

      Looking at the code in HttpServletRequestImpl and HttpServletResponseImpl there indeed seems to be a bug.

      Attachments

        Issue Links

          Activity

            People

              jaikiran Jaikiran Pai (Inactive)
              jaikiran Jaikiran Pai (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: