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

CLONE - URLScanner can not handle paths containing spaces

XMLWordPrintable

    • 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

      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".

            marko.luksa@gmail.com Marko Luksa (Inactive)
            mhartl_jira Manuel Hartl (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: