https://bz.apache.org/bugzilla/show_bug.cgi?id=58768

            Bug ID: 58768
           Summary: Add Logging to Response.sendRedirect
           Product: Tomcat 7
           Version: 7.0.67
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Servlet & JSP API
          Assignee: dev@tomcat.apache.org
          Reporter: gsex...@mhsoftware.com

The new behavior introduced in:

https://bz.apache.org/bugzilla/show_bug.cgi?id=56917

Can cause strange and mysterious errors. For example, passing an invalid value
fo sendRedirect():

response.sendRedirect("SomePage.html?value=Some Word")

will now generate a 404 error indicating that the page containing the
sendRedirect() call is not found. In this case the real error is that the
parameter is not URI encoded.

Additionally, because of the manner it's called, no diagnostic page is
generated. The developer is left scratching their head wonder what went wrong.

It would be very helpful if the IllegalArgumentException that get's caught in
o.a.c.c.Response at line 1412 could be logged.

-- 
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