webjars/webjars-locator — pull request #16 by huntc (2013-06-17 05:19:35+00:00)
Title: Loading assets fails if the installation path contains whitespaces

Loading WebJar assets fails if the installation path contains whitespace (this is mainly a problem with Windows platform).

It seems that spaces in path are replaced with %20 even when resources are loaded from a local file, which results in a FileNotFoundException (stack trace attached).

Stacktrace:

Caused by: java.io.FileNotFoundException: C:\Program%20Files\Tomcat%207.0.29\webapps\ROOT\WEB-INF\lib\emberjs-1.0.0-rc.2.jar (The system cannot find the path specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:214)
at java.util.zip.ZipFile.(ZipFile.java:144)
at java.util.jar.JarFile.(JarFile.java:152)
at java.util.jar.JarFile.(JarFile.java:89)
at org.webjars.WebJarAssetLocator.getAssetPaths(WebJarAssetLocator.java:106)
... 56 more