[
https://issues.apache.org/jira/browse/VFS-203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sergey Vladimirov updated VFS-203:
----------------------------------
Attachment: patch.txt
Okay, proposed patch in attachment. It overrides createURI() method in
LocalFileName (since only this class allows spaces in names) and replaces
getPath() call with new URI(null, null, getPath(), null).toString().
Simple test case (included) shows that result URI parsed by java.net.URI. And,
as well, it can be passed back to VFS....resolveFile() - and it will work.
The problems is broken UrlProviderTestCase :(
don't know why yet
> FileObject..getName().getURI() returns URIs with spaces
> -------------------------------------------------------
>
> Key: VFS-203
> URL: https://issues.apache.org/jira/browse/VFS-203
> Project: Commons VFS
> Issue Type: Bug
> Affects Versions: 1.0
> Reporter: Tim Lebedkov
> Attachments: patch.txt
>
>
> Windows supports file names with spaces and '#'. AFAIK spaces are not allowed
> in URIs and # will be interpreted as an URI fragment.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.