Uploaded image for project: 'JBoss Web'
  1. JBoss Web
  2. JBWEB-110

Setting debug level causes character encoding to fail for jsp's.

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: JBossWeb-1.0.1.GA
    • Fix Version/s: JBossWeb-2.1.1.GA
    • Component/s: Tomcat
    • Labels:
      None
    • Environment:

      Application Servers

    • Affects:
      Release Notes
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Set debug level for this class to INFO.

      Show
      Set debug level for this class to INFO.

      Description

      When debug logging level is enabled for the class org.apache.jasper.servlet.JspServlet, any specific character coding is ignored.

      In the service() method with debug on, the parameters are retrieved from the request object. This parses the parameters before any character encoding has been set, but it sets the parameters parsed flag to true. Therefore the encoding will never get set.

      The attached jsp can demonstrate. After setting

      <category name="org.apache.jasper.servlet.JspServlet">
      <priority value="DEBUG"/>
      </category>

      in log4j config, enter a Greek character say and the returned text will not be utf-8.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                rmaucher Valued Customer
                Reporter:
                dstephan David Stephan
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: