[rfc][icedtea-web] Fix regression in SpacesCanBeEveryWhere reproducer

Adam Domurad adomurad at redhat.com
Wed Apr 24 12:30:57 PDT 2013

2013-XX-XX  Adam Domurad  <adomurad at redhat.com>

     * netx/net/sourceforge/jnlp/cache/ResourceTracker.java
     (getCacheFile): Use decodeUrlAsFile instead of toURI().getPath().
     * netx/net/sourceforge/jnlp/util/UrlUtils.java
     (decodeUrlAsFile): New, tolerates ill-formed URLs.
     * tests/netx/unit/net/sourceforge/jnlp/util/UrlUtilsTest.java:
     (testDecodeUrlAsFile): Test for (decodeUrlAsFile)

Sorry this wasn't caught sooner, and thanks to Jiri for pointing it out.
The problem was that archives can't be guaranteed to be encoded URLs.
We instead use an encoding-tolerant function.

Note that the headache is caused because Java allows essentially invalid 
URLs to be created (and, on our side, that we allow them to be created).

Happy hacking,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-paths-with-spaces-regression.patch
Type: text/x-patch
Size: 3303 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20130424/2c5c04d1/fix-paths-with-spaces-regression.patch 

More information about the distro-pkg-dev mailing list