You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2001/03/09 23:17:12 UTC

[Bug 154] New - Setting Last-Modified within doGet results in duplicate Last-Modified headers BugRat Report#185

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

*** shadow/154	Fri Mar  9 14:17:12 2001
--- shadow/154.tmp.7453	Fri Mar  9 14:17:12 2001
***************
*** 0 ****
--- 1,33 ----
+ +============================================================================+
+ | Setting Last-Modified within doGet results in duplicate Last-Modified head |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 154                         Product: Tomcat 3                |
+ |       Status: UNCONFIRMED                 Version: Nightly Build           |
+ |   Resolution:                            Platform: All                     |
+ |     Severity: Normal                   OS/Version: All                     |
+ |     Priority: High                      Component: Servlet                 |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: Larry.Isaacs@sas.com                                         |
+ |  Reported By: kientzle@acm.org                                             |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ Within my doGet() routine, I manually
+ set Last-Modified using:
+ 
+ setDateHeader("Last-Modified", modificationTime);
+ 
+ I also implement getLastModified().
+ 
+ If getLastModified returns a valid value, then
+ the response generated has duplicate Last-Modified
+ headers.  Looking at
+ jakarta-servletapi/.../javax/servlet/http/HttpServlet.java,
+ it appears that the service() routine sets a Last-Modified
+ header before calling doGet(), which suggests that
+ setDateHeader() is broken and fails to correctly
+ override the previous definition.  I looked through
+ jakarta-tomcat/.../util/MimeHeaders.java and couldn't
+ see what might cause this behavior.

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