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

ClassPath.getResource does not correctly perform URL escaping

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: unspecified
    • Fix Version/s: 6.0
    • Component/s: Main
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: