Skip to content
Commits on Source (4)
jnati (0.4-2) unstable; urgency=medium
* Adding a patch disabling URL-decoding of paths on filesystem, as they do
not seem to be encoded.
-- Andrius Merkys <merkys@debian.org> Wed, 16 Oct 2019 04:40:50 -0400
jnati (0.4-1) unstable; urgency=medium
* Initial release (Closes: #939449)
......
Description: ClassLoader.getResources() does not seem to return
URL-encoded URLs therefore there is no need to URL-decode them.
Author: Andrius Merkys <merkys@debian.org>
Bug: https://sourceforge.net/p/jnati/bugs/5/
--- a/jnati-deploy/src/main/java/net/sf/jnati/deploy/repository/ClasspathRepository.java
+++ b/jnati-deploy/src/main/java/net/sf/jnati/deploy/repository/ClasspathRepository.java
@@ -105,12 +105,7 @@
}
private String getString(URL url) {
- // Decode url-encoded characters - %20 = <space> etc...
- try {
- return URLDecoder.decode(url.toString(), "UTF-8");
- } catch (UnsupportedEncodingException e) {
- throw new RuntimeException("UTF-8 encoding not supported!", e);
- }
+ return url.toString();
}
}
no-URLDecode-file-names.patch