DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7280>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7280 URI hangs on relative uris with more then one /../ after each other. Summary: URI hangs on relative uris with more then one /../ after each other. Product: Xerces2-J Version: 2.0.1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Other AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The URI class will go into an endless loop when given a realtive uri with more than one /../ after each other, for example: Given the uri file:../../../tt-simple/xsl//tt2newsml.xsl And with the follwing println in URI: while ((index = path.indexOf("/../")) > 0) { System.out.println("DEBUG Xalan working with path " + path); tempString = path.substring(0, path.indexOf("/../")); segIndex = tempString.lastIndexOf('/'); if (segIndex != -1) { if (!tempString.substring(segIndex++).equals("..")) { path = path.substring(0, segIndex).concat(path.substring(index + 4)); } } It will forever print: DEBUG Xalan working with path ../../../tt-simple/xsl//ttcore2newsml.xsl DEBUG Xalan working with path ../../../tt-simple/xsl//ttcore2newsml.xsl DEBUG Xalan working with path ../../../tt-simple/xsl//ttcore2newsml.xsl --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
