tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54087] HTTP Connector incorrectly throws Exception on Invalid If-Modified-Since Header
Date Mon, 12 Nov 2012 09:12:10 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=54087

Konstantin Kolinko <knst.kolinko@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #2 from Konstantin Kolinko <knst.kolinko@gmail.com> ---
(In reply to comment #1)
> 
> When processing the If-Modified-Since header in the DefaultServlet, Tomcat
> does follow RFC2616-14.25.a and effectively ignores the header.
> 

I am REOPENing this. The DefaultServlet is OK and has the necessary try/catches
around getDateHeader() calls.

The problem is in javax.servlet.http.HttpServlet#service() where a try/catch is
missing.

I see two options: a) ignore the invalid header, like it is done by
DefaultServlet, b) silently fail with error 400. Failing with error 500 isn't
good.

-- 
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