[jboss-jira] [JBoss JIRA] Created: (JBWEB-110) Setting debug level causes character encoding to fail for jsp's.

David Stephan (JIRA) jira-events at lists.jboss.org
Fri Jul 11 02:08:26 EDT 2008


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

                 Key: JBWEB-110
                 URL: http://jira.jboss.com/jira/browse/JBWEB-110
             Project: JBoss Web
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Tomcat Module
    Affects Versions:  JBoss Web Server 1.0.1 GA
         Environment: Application Servers
            Reporter: David Stephan
         Assigned To: Mladen Turk
            Priority: Minor
         Attachments: log.jsp

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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list