scrypt icon indicating copy to clipboard operation
scrypt copied to clipboard

JAR library loading fails with '#'

Open Le1632 opened this issue 7 years ago • 0 comments

The JarLibraryLoader has apparently a problem while loading if placed in a directory that contains special characters which have to be URL encoded.

For example, if the directory path contains "web#app" java.security.CodeSource.getLocaction().getPath() in line 59 will encode the '#' and return "web%23app". However, the java.util.jar.JarFile constructor expects a (not encoded) filename and consequently fails to load from the nonexistent directory "web%23app". A simple java.net.URLDecoder.decode() in line 59 would fix this issue.

I can create a pull request upon request.

Le1632 avatar Feb 02 '18 08:02 Le1632