Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: 1.0-beta-3.0.7
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
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