ASF Bugzilla – Attachment 3272 Details for
Bug 12978
Tomcat doesn't pick up error pages.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
o.a.c.v.ErrorDispatcherValve even newer.. one of those days....
edv.txt (text/plain), 1.09 KB, created by
John Trollinger
on 2002-09-27 18:47:48 UTC
(
hide
)
Description:
o.a.c.v.ErrorDispatcherValve even newer.. one of those days....
Filename:
MIME Type:
Creator:
John Trollinger
Created:
2002-09-27 18:47:48 UTC
Size:
1.09 KB
patch
obsolete
>--- old/ErrorDispatcherValve.java 2002-09-23 11:23:16.000000000 -0400 >+++ new/ErrorDispatcherValve.java 2002-09-27 14:45:54.000000000 -0400 >@@ -217,15 +217,18 @@ > return; > > Throwable realError = throwable; >- >- if (realError instanceof ServletException) { >- realError = ((ServletException) realError).getRootCause(); >- if (realError == null) { >- realError = throwable; >+ ErrorPage errorPage = null; >+ if (realError instanceof ServletException) { >+ errorPage = findErrorPage(context, (ServletException) realError); >+ if (errorPage == null){ >+ realError = ((ServletException) realError).getRootCause(); >+ if (realError == null) { >+ realError = throwable; >+ } > } > } > >- ErrorPage errorPage = findErrorPage(context, realError); >+ errorPage = findErrorPage(context, realError); > > if (errorPage != null) { > response.setAppCommitted(false);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 12978
:
3270
|
3271
| 3272