Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5729

JarFileClassLoader can't handle URLs with spaces

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.3
    • 1.6.4, 1.7.0
    • kernel
    • None

    Description

      Hi,

      When creating a JarFileClassLoader with URLs built from File with spaces (using File#toURI().toURL(), so that the spaces are correctly handled up to the point we have an URL), then UrlResourceFinder#rebuildClassPath() will then transform these URLs back to File but will fail to transform them properly when they contains spaces.

      I think the proper way to convert an URL to a File is to call new File(url.toURI()) and not simply new File(url.getPath)!

      Attachments

        Activity

          People

            veithen Andreas Veithen
            victor.noel Victor
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: