Skip to content
GitLab
Explore
Sign in
Register
Commits on Source
4
Adding a patch disabling URL-decoding of paths on filesystem, as they do not seem to be encoded.
· 16f5fd49
Andrius Merkys
authored
Sep 06, 2019
16f5fd49
Adding a patch description.
· 27a7abfe
Andrius Merkys
authored
Sep 06, 2019
27a7abfe
Adding bug URL to the patch desciption.
· 8e8ea07f
Andrius Merkys
authored
Sep 06, 2019
8e8ea07f
Preparing for the upload.
· 5964d6ab
Andrius Merkys
authored
Oct 16, 2019
5964d6ab
Show whitespace changes
Inline
Side-by-side
debian/changelog
View file @
5964d6ab
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)
...
...
debian/patches/no-URLDecode-file-names.patch
0 → 100644
View file @
5964d6ab
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();
}
}
debian/patches/series
0 → 100644
View file @
5964d6ab
no-URLDecode-file-names.patch