Uploaded image for project: 'Commons BCEL'
  1. Commons BCEL
  2. BCEL-167

ClassPath.getResource does not correctly perform URL escaping

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 6.0
    • Main
    • None

    Description

      When asking for resources with a space in the name, these should be URL escaped but are not. The patch replaces the deprecated File.toURL() with File.toURI().toURL() which fixes the issue.

      Attachments

        1. toURI.patch
          0.7 kB
          Len Trigg

        Activity

          People

            issues@commons.apache.org Apache Commons Developers
            lenbok@gmail.com Len Trigg
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: