Bug in UrlUtils prevents relative parent URL handling
-----------------------------------------------------
Key: PLX-368
URL:
http://jira.codehaus.org/browse/PLX-368 Project: Plexus
Issue Type: Bug
Reporter: Oliver Gierke
I get an StringIndexOutOfBoundsException if a Mavenplugin tries to call normalizeUrl(..) on UrlUtils with the following format:
"../../foo/bar".
As I found the sources here (
http://fisheye.codehaus.org/browse/~raw,r=4729/plexus/plexus-classworlds/trunk/src/main/java/org/codehaus/classworlds/UrlUtils.java) it seems that the guarding if-clause (if (i >0)) is not strog enought as a value of 2 for i can cause a call to substring(-1) two lines later.
Regards, Ollie
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email