]
Ales Justin updated JBVFS-89:
-----------------------------
Affects Version/s: 2.0.1.GA
Fix use of java.util.File.toURL()
---------------------------------
Key: JBVFS-89
URL:
https://jira.jboss.org/jira/browse/JBVFS-89
Project: JBoss VFS
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 2.0.1.GA
Reporter: Adrian Brock
Assignee: Ales Justin
Fix For: 2.1.0.GA
There are a number of places in the VFS code that are doing
java.util.File.toURL()
which doesn't escape the URL properly. These should at least be doing
File.toURI().toURL()
to get the correctly escaped URL.
e.g. in FileSystemContext
protected DelegatingHandler mountZipFS(VirtualFileHandler parent, String name, File
file) throws IOException, URISyntaxException
{
DelegatingHandler delegator = new DelegatingHandler(this, parent, name);
URL fileUrl = file.toURL(); // HERE!!!!!!!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: