sshyran / genxdm

Automatically exported from code.google.com/p/genxdm
0 stars 0 forks source link

Schema parse fails for schemas with spaces in targetNamespace attribute value #152

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
We use java.net.URI to represent anyURI values, and our anyURI.validate method 
simply instantiates a java.net.URI from a raw string value.  So, when the 
schema parser attempts to create a URI from a string which contains a space, we 
get a URISyntaxException.  That's really the fault of java.net.URI, but we must 
work around that limitation.

Original issue reported on code.google.com by joe.bays...@gmail.com on 13 Mar 2014 at 3:12

GoogleCodeExporter commented 8 years ago
r496.  AnyURIType.validate now uses StringToURIParser to create URIs; that 
means resulting URI is encoded (e.g. ' ' becomes '%20').  I made a related 
change to SchemaCacheImpl$ProviderImpl so that calls to retrieve components by 
QName will not fail if the incoming QName is not encoded.

Original comment by joe.bays...@gmail.com on 13 Mar 2014 at 3:21