santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 42865] New: - Problem with empty BaseURI in ResolverLocalFilesystem
Date Thu, 12 Jul 2007 08:08:02 GMT
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: julien.taupin@ilex.fr


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.

Mime
View raw message