Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 58948 invoked from network); 7 Feb 2006 03:15:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Feb 2006 03:15:31 -0000 Received: (qmail 5058 invoked by uid 500); 7 Feb 2006 03:15:26 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 5001 invoked by uid 500); 7 Feb 2006 03:15:26 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 4990 invoked by uid 500); 7 Feb 2006 03:15:26 -0000 Delivered-To: apmail-jakarta-tomcat-dev@jakarta.apache.org Received: (qmail 4987 invoked by uid 99); 7 Feb 2006 03:15:26 -0000 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Feb 2006 19:15:26 -0800 Received: by ajax.apache.org (Postfix, from userid 99) id CB8D7CB; Tue, 7 Feb 2006 04:15:04 +0100 (CET) From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Subject: DO NOT REPLY [Bug 38546] New: - Google bot sends invalid If-Modifed-Since Header, Tomcat throws exception Message-ID: X-Bugzilla-Reason: AssignedTo Date: Tue, 7 Feb 2006 04:15:04 +0100 (CET) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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://issues.apache.org/bugzilla/show_bug.cgi?id=38546 Summary: Google bot sends invalid If-Modifed-Since Header, Tomcat throws exception Product: Tomcat 5 Version: 5.0.28 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Catalina AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: rick@knowleses.org Not sure if this is fixed in the recent versions, or even if it should be, but thought it should be noted somewhere. Feel free to close this as invalid, since it isn't tomcat's fault. When being crawled by the google bot (User-Agent: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)) the following exception gets thrown on each of the servlets I've deployed that implement the getLastModified () call. java.lang.IllegalArgumentException: Mon, 06 Feb 2006 17:14:33 at org.apache.coyote.tomcat5.CoyoteRequest.getDateHeader (CoyoteRequest.java:1887) at org.apache.coyote.tomcat5.CoyoteRequestFacade.getDateHeader (CoyoteRequestFacade.java:426) at javax.servlet.http.HttpServlet.service(HttpServlet.java:691) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:237) I'm pretty sure the error is Google's. The RFC requires a timezone to be appended for date headers (and more specfically a GMT timezone), which this one doesn't have. Would it be possible to have tomcat simply throw a warning here ? It is a recoverable error if we assumed the timezone was GMT if omitted, and logged as an invalid timestamp ? Or possibly even trapped, logged as a warning and assumed to be not supplied (i.e. = 1970). I understand this is probably not a tomcat bug, and I will lodge it with the Google bot support as well, but wondered whether it might not be a good robustness thing to add in anyway. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org