tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53621] Response code incorrect for requests to contexts in stopped state.
Date Mon, 30 Jul 2012 15:15:52 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53621

--- Comment #3 from Kyle Harper <KyleJHarper@gmail.com> ---
Regarding RFC 2616 and 4xx vs. 5xx codes, I agree that 4xx is more appropriate.
 I'm not sure I agree that 404 is the best option as it lacks information for
the client, but given Konstantin's remark #1 "A stopped context is absent to
tomcat", it makes sense.

I did bring this to the users group via email and the solution of adding a
servlet in the ROOT context to handle mappings for contexts in the stopped
state was suggested.  I implemented this and it works in 7.0.26, and does not
work in 6.0.35.  Here is a link to the archive for that issue:
http://markmail.org/thread/wk7d5zxkp2lsflmz
(I can open a different bug for 6.0.35 Request Mapper not falling back to /ROOT
if you wish to patch 6.x.)

>1. A stopped application is effectively absent from Tomcat and its request 
>Mapper.

Given this, tomcat is working as intended.  Leaving bug resolved:invalid.  If
time permits I'll research a patch to enable configurable status codes in
stopped states.

Thanks.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


Mime
View raw message