You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Peter Mahoney (JIRA)" <my...@incubator.apache.org> on 2005/08/17 11:49:53 UTC
[jira] Created: (MYFACES-416) StringIndexOutOfBoundsException in AddResource
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
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
[jira] Resolved: (MYFACES-416) StringIndexOutOfBoundsException in AddResource
Posted by "Sylvain Vieujot (JIRA)" <my...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-416?page=all ]
Sylvain Vieujot resolved MYFACES-416:
-------------------------------------
Fix Version: Nightly Build
Resolution: Fixed
Done.
Thanks Peter.
> 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
[jira] Closed: (MYFACES-416) StringIndexOutOfBoundsException in AddResource
Posted by "Martin Marinschek (JIRA)" <my...@incubator.apache.org>.
[ 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