[Git][java-team/jnati][master] 4 commits: Adding a patch disabling URL-decoding of paths on filesystem, as they do not seem to be encoded.

Andrius Merkys gitlab at salsa.debian.org
Wed Oct 16 10:54:02 BST 2019



Andrius Merkys pushed to branch master at Debian Java Maintainers / jnati


Commits:
16f5fd49 by Andrius Merkys at 2019-09-06T18:43:58Z
Adding a patch disabling URL-decoding of paths on filesystem, as they do not seem to be encoded.

- - - - -
27a7abfe by Andrius Merkys at 2019-09-06T18:46:27Z
Adding a patch description.

- - - - -
8e8ea07f by Andrius Merkys at 2019-09-06T18:50:49Z
Adding bug URL to the patch desciption.

- - - - -
5964d6ab by Andrius Merkys at 2019-10-16T08:41:30Z
Preparing for the upload.

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/no-URLDecode-file-names.patch
- + debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+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 at 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,0 +1,20 @@
+Description: ClassLoader.getResources() does not seem to return
+ URL-encoded URLs therefore there is no need to URL-decode them.
+Author: Andrius Merkys <merkys at 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,0 +1 @@
+no-URLDecode-file-names.patch



View it on GitLab: https://salsa.debian.org/java-team/jnati/compare/588a15eb945af916fb12a5198dda5e2db4f1f9c0...5964d6ab07be2e9b645a445e4a40d514baaa372a

-- 
View it on GitLab: https://salsa.debian.org/java-team/jnati/compare/588a15eb945af916fb12a5198dda5e2db4f1f9c0...5964d6ab07be2e9b645a445e4a40d514baaa372a
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20191016/f55c95eb/attachment.html>


More information about the pkg-java-commits mailing list