Uploaded image for project: 'JBoss VFS'
  1. JBoss VFS
  2. JBVFS-89

Fix use of java.util.File.toURL()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.1.0.GA
    • 2.0.1.GA
    • None
    • None

      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!!!!!!!

            ajustin@redhat.com Ales Justin
            adrian.brock Adrian Brock (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: