[jboss-jira] [JBoss JIRA] Created: (JBVFS-89) Fix use of java.util.File.toURL()
Adrian Brock (JIRA)
jira-events at lists.jboss.org
Wed Feb 18 10:24:44 EST 2009
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
More information about the jboss-jira
mailing list