List Info

Thread: DO NOT REPLY New: - Problem with empty BaseURI in ResolverLocalFilesystem




DO NOT REPLY New: - Problem with empty BaseURI in ResolverLocalFilesystem
country flaguser name
United States
2007-07-12 03:08:02
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=42
865>.
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-devxml.apache.org
        ReportedBy: julien.taupinilex.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=ema
il
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the
assignee.

DO NOT REPLY - Problem with empty BaseURI in ResolverLocalFilesystem
country flaguser name
United States
2007-08-15 08:10:28
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=42
865>.
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





------- Additional Comments From infofrankcornelis.be 
2007-08-15 06:10 -------
Created an attachment (id=20667)
 --> (http://issues.apache.org/bugzilla/attac
hment.cgi?id=20667&action=view)
Patch that fixes this bug.

I can confirm this is a bug in ResolverLocalFilesystem as I
stumbled on it
myself while trying to create a detached XML signature of a
binary file. The
attached patch fixes the issue as described before.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=ema
il
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the
assignee.

DO NOT REPLY - Problem with empty BaseURI in ResolverLocalFilesystem
country flaguser name
United States
2007-09-10 12:29:56
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=42
865>.
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


sean.mullansun.com changed:

           What    |Removed                     |Added
------------------------------------------------------------
----------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From sean.mullansun.com 
2007-09-10 10:29 -------
Fixed in main trunk.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=ema
il
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the
assignee.

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )