tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21341] - Error page mechanism not working
Date Wed, 16 Jul 2003 10:46:32 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21341>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21341

Error page mechanism not working





------- Additional Comments From banil@novell.com  2003-07-16 10:46 -------
Details of above attached fix:
The call to processRequest in ApplicationDispatcher::doForward is replaced with 
the body of processRequest with reversed check, so that in normal case invoke
(outerRequest, response) gets called instead of invoke(request, response).

Need some inputs on the impact if this fix is made *inside* the 
ApplicationDispatcher::processRequest method.

--- src\share\org\apache\catalina\core\ApplicationDispatcher.java
+++ modified\src\share\org\apache\catalina\core\ApplicationDispatcher.java
@@ -509
           ApplicationFilterFactory.DISPATCHER_TYPE_ATTR);
-if (disInt.intValue() != ApplicationFilterFactory.ERROR) {

+if (disInt.intValue() == ApplicationFilterFactory.ERROR) {

Observation: When status code 500 (Internal Serve Error) is returned, IE does 
not show the error-page if the message in the page is less than some number (in 
my case approx 500) of characters. This problem does not occur if Netscape is 
used. Looks like a client side problem.

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


Mime
View raw message