Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 69556 invoked from network); 19 Aug 2005 02:30:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Aug 2005 02:30:04 -0000 Received: (qmail 59009 invoked by uid 500); 19 Aug 2005 02:30:03 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 58723 invoked by uid 500); 19 Aug 2005 02:30:02 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 58710 invoked by uid 99); 19 Aug 2005 02:30:02 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_FAIL 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; Thu, 18 Aug 2005 19:30:00 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 34E44E2 for ; Fri, 19 Aug 2005 04:29:59 +0200 (CEST) Message-ID: <2085826483.1124418599215.JavaMail.jira@ajax.apache.org> Date: Fri, 19 Aug 2005 04:29:59 +0200 (CEST) From: "Martin Marinschek (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Closed: (MYFACES-416) StringIndexOutOfBoundsException in AddResource In-Reply-To: <777208925.1124272193907.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/MYFACES-416?page=all ] Martin Marinschek closed MYFACES-416: ------------------------------------- > StringIndexOutOfBoundsException in AddResource > ---------------------------------------------- > > Key: MYFACES-416 > URL: http://issues.apache.org/jira/browse/MYFACES-416 > Project: MyFaces > Type: Bug > Components: Tomahawk > Versions: Nightly Build > Reporter: Peter Mahoney > Fix For: Nightly Build > > The method writeWithFullHeader() in AddResource throws > StringIndexOutOfBoundsException: String index out of range: -1 > on the line: > writer.write(originalResponse.substring(insertPosition)); > The rest of the method contains checks for insertPosition to be >= 0, therefore the line should be changed to something like: > writer.write(insertPosition > 0 ? originalResponse.substring(insertPosition) : originalResponse); -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira