Announcement Announcement Module
Collapse
No announcement yet.
URL encoding before converting to URI Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • URL encoding before converting to URI

    Hello, faced with exception when parsing xsd schema files. After debugging found that in org.springframework.xml.sax.SaxUtils class during creating SAX InputSource URISyntaxException could be thrown if resouce URL contains illegal characters. In my case path to the resource contained spaces. Maybe it will be useful to encode URL before creating URI. Is this a bug or expected behaviour? As for me, this is bug, but maybe I missed something.
    Code snippet from SaxUtils.getSystemId method:
    Code:
    return new URI(resource.getURL().toExternalForm()).toString();
Working...
X