DO NOT REPLY [Bug 10373] - Wrong response status code for custom error page

2003-09-23 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=10373

Wrong response status code for custom error page





--- Additional Comments From [EMAIL PROTECTED]  2003-09-24 02:35 ---
This is a very questionable and unfortunate decision.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 10373] - Wrong response status code for custom error page

2003-09-23 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=10373

Wrong response status code for custom error page

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2003-09-23 23:55 ---
In error pages, it is the responsibility of the jsp page author to reset the
error code to the correct state. You find this behavior in other containers too.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 10373] - Wrong response status code for custom error page

2002-10-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=10373

Wrong response status code for custom error page





--- Additional Comments From [EMAIL PROTECTED]  2002-10-27 04:00 ---
Oops... I should point out I was reading the 2.3 spec.  2.4 apparently 
clarifies the 500 response code thing by saying it only applies as a default 
if there are no other matches.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




DO NOT REPLY [Bug 10373] - Wrong response status code for custom error page

2002-10-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=10373

Wrong response status code for custom error page





--- Additional Comments From [EMAIL PROTECTED]  2002-10-27 03:38 ---
It seems clear to me that the current behavior is broken.  Lots of bugs have 
been closed or dismissed over this "error pages do a RequestDispatcher 
forward" thing, which seems to be a quirk of the Tomcat implementation, rather 
than any specific requirement of the specification.  At least, if it is stated 
there, I can't find it; section 9.8 pretty obviously avoids using the 
word "forward" in its description of what happens.  Unless you interpret the 
last paragraph as applying to all errors, it makes no mention of changing the 
response code before serving the error page.

In any case, a 200 response code is obviously wrong; the only two 
interpretations that seem tenable are to send the original response code, or 
to change it to 500.  For the sake of usability, I hope you decide on sending 
the original response code.

I fervently hope that implementation-level decisions don't affect what's 
perceived as the correct behavior in this case.

Apparently the correct response code is stored in an attribute 
called "javax.servlet.error.status_code" as a java.lang.Integer object.  As a 
temporary work-around, would it be possible to set the correct status code 
again in a scriptlet at the beginning of the error page servlet or JSP?  I 
haven't tried this, but it looks promising.  I don't know off-hand whether 
RequestDispatcher.forward commits the response or not; if not, then this could 
work.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




DO NOT REPLY [Bug 10373] - Wrong response status code for custom error page

2002-07-03 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=10373

Wrong response status code for custom error page

[EMAIL PROTECTED] changed:

   What|Removed |Added

  Component|Catalina|Servlet & JSP API



--- Additional Comments From [EMAIL PROTECTED]  2002-07-03 08:14 ---
It is unclear to me what the behavior should be. Since we're doing a forward to
a page, that's why the status is reset to a normal code at the moment.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: