[JBoss JIRA] Created: (JBVFS-89) Fix use of java.util.File.toURL()
by Adrian Brock (JIRA)
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)
Reporter: Adrian Brock
Assignee: Ales Justin
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: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 10 months