https://issues.apache.org/bugzilla/show_bug.cgi?id=46907

           Summary: Jasper with log4j in web-app classpath and debug level
                    enabled prevents reading HTTP POST stream from JSP
           Product: Tomcat 5
           Version: Unknown
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: Jasper
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: ola...@yahoo.fr


This is on Tomcat 5.5.x (don't remember the last rev. number, not my current
machine).

When log4j is in the classpath of the web-app and is configured to log at debug
level, Jasper dumps the whole HTTP POST request body as debug traces. This
consumes the HttpServletRequest input stream which then arrives unusable for
the user at the beginning of the JSP code (using 
HttpServletRequest.getInputStream(), the stream is already at its end).
A workaround is to disable debug traces for Japser class in log4j.properties,
but Jasper should not consume the HttpServletRequest input stream whatever mode
it runs into.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to