Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-834

URLScanner can not handle paths containing spaces

    XMLWordPrintable

Details

    • Hide

      1. Place classes to folder which name contains space
      2. Put the path to system classpath
      3. Execute Weld bootstrap

      Show
      1. Place classes to folder which name contains space 2. Put the path to system classpath 3. Execute Weld bootstrap

    Description

      When actual classpath includes folder that contains spaces, URLScanner throws an exception (java.io.FileNotFoundException). Problem is at line 93 where string holding URL is "converted" to path just by stripping URL scheme prefix. Unfortunately, spaces in URL are expressed either by plus sing or %20 escape sequence, which remains in file path instead of proper URL decoding. For example "file:/C:/with%20space" is converted to "/C:/with%20space" instead of "C:/with space".

      Attachments

        Issue Links

          Activity

            People

              ajustin@redhat.com Ales Justin
              stepanmik Štěpán Mík (Inactive)
              Votes:
              4 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: