Author: markt
Date: Fri Sep 2 11:26:14 2011
New Revision: 1164480
URL: http://svn.apache.org/viewvc?rev=1164480&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=51550
Use context error pages where possible e.g. for authenticator errors
Modified:
tomcat/trunk/java/org/apache/catalina/core/StandardHostValve.java
Modified: tomcat/trunk/java/org/apache/catalina/core/StandardHostValve.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/StandardHostValve.java?rev=1164480&r1=1164479&r2=1164480&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/StandardHostValve.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/StandardHostValve.java Fri Sep
2 11:26:14 2011
@@ -164,7 +164,13 @@ final class StandardHostValve extends Va
if (asyncAtStart || context.fireRequestInitEvent(request)) {
// Ask this Context to process this request
- context.getPipeline().getFirst().invoke(request, response);
+ try {
+ context.getPipeline().getFirst().invoke(request, response);
+ } catch (Throwable t) {
+ ExceptionUtils.handleThrowable(t);
+ request.setAttribute(RequestDispatcher.ERROR_EXCEPTION, t);
+ throwable(request, response, t);
+ }
// If the request was async at the start and an error occurred then
// the async error handling will kick-in and that will fire the
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]