Return-Path: Delivered-To: apache-bugdb-archive@hyperreal.org Received: (qmail 473 invoked by uid 6000); 1 Sep 1999 12:20:12 -0000 Received: (qmail 313 invoked by uid 2001); 1 Sep 1999 12:20:00 -0000 Received: (qmail 29074 invoked by uid 2012); 1 Sep 1999 12:12:39 -0000 Message-Id: <19990901121239.29073.qmail@hyperreal.org> Date: 1 Sep 1999 12:12:39 -0000 From: Frank Gosdschan Reply-To: frank.gosdschan@db.com To: apbugs@hyperreal.org X-Send-Pr-Version: 3.2 Subject: mod_jserv/4944: Parsing date header from servlet request Sender: apache-bugdb-owner@apache.org Precedence: bulk >Number: 4944 >Category: mod_jserv >Synopsis: Parsing date header from servlet request >Confidential: no >Severity: serious >Priority: medium >Responsible: jserv >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Wed Sep 1 05:20:00 PDT 1999 >Last-Modified: >Originator: frank.gosdschan@db.com >Organization: apache >Release: Apache 1.3.3, JServ 0.9.11 >Environment: AIX, JDK 1.1.6 >Description: If the browser sends a date header "If-Modified-Since" the SimpleDateFormat.parse(String) function throws a StringIndexOutOfBoundsException which is not catched in JServConnection.getDateHeader(String). Maybe it is a problem of Java 1.1.6 The result is an internal server error 500. xxxxxxxxxxxxxxxxxxxxxxxxx name = If-Modified-Since xxxxxxxxxxxxxxxxxxxxxxxxx val = Tue, 31 Aug 1999 15:32:49 GMT xxxxxxxxxxxxxxxxxxxxxxxxx 0 [31/08/1999 17:41:53 CEST]: Sending response headers. [31/08/1999 17:41:53 CEST]: java.lang.StringIndexOutOfBoundsException: String index out of range: 29: String index out of range: 29 java.lang.StringIndexOutOfBoundsException: String index out of range: 29 at java.lang.String.charAt(Compiled Code) at java.text.SimpleDateFormat.subParse(Compiled Code) at java.text.SimpleDateFormat.parse(Compiled Code) at java.text.DateFormat.parse(Compiled Code) at org.apache.jserv.JServConnection.getDateHeader(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.jserv.JServConnection.run(Compiled Code) >How-To-Repeat: >Fix: >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]