DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=42865>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42865 Summary: Problem with empty BaseURI in ResolverLocalFilesystem Product: Security Version: Java 1.4.1 Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: Signature AssignedTo: security-dev@xml.apache.org ReportedBy: [EMAIL PROTECTED] An Exception "Unable to initialize URI with empty parameters" is thrown on signing when using "" as a base URI and defining a reference with the URI of a file (for exemple : file:/home/user/file.xml) This Exception is thrown when building an URI in the ResolverLocalFilesystem class in the engineResolve() method. The code used to built the URI is : URI uriNew = new URI(new URI(BaseURI), uri.getNodeValue());/> This problem is not present in the ResolverDirectHTTP class wehre the code used to build the URI is : ... URI uriNew = getNewURI(uri.getNodeValue(), BaseURI); ... private URI getNewURI(String uri, String BaseURI) throws URI.MalformedURIException { if ((BaseURI == null) || "".equals(BaseURI)) { return new URI(uri); } return new URI(new URI(BaseURI), uri); } -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.