Hi all,

I m not sure about the use of the BaseURI parameter but I think there is a problem in the ResolverLocalFilesystem class.

When I use "" as a base URI and I define a reference with the URI of a file (for exemple : file:/home/user/file.xml) I get the following error when signing :
"Unable to initialize URI with empty parameters"

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);
      }/

I think that the getNewURI() method should be used in the ResolverLocalFilesystem class.

--

*Julien TAUPIN*
*Ingénieur d'études *
Ilex

51, boulevard Voltaire
92600 Asnières-sur-Seine
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>*
Tél : +33 (0)1 46 88 03 40
Fax : +33 (0)1 46 88 03 41
*www.ilex.fr * <blocked::http://www.ilex.fr/>

Reply via email to