Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

JAR library loading fails with '#' #48

Open
Le1632 opened this issue Feb 2, 2018 · 0 comments
Open

JAR library loading fails with '#' #48

Le1632 opened this issue Feb 2, 2018 · 0 comments

Comments

@Le1632
Copy link

Le1632 commented Feb 2, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant