[rfc][icedtea-web] Fix regression in SpacesCanBeEveryWhere reproducer
adomurad at redhat.com
Wed Apr 24 12:30:57 PDT 2013
2013-XX-XX Adam Domurad <adomurad at redhat.com>
(getCacheFile): Use decodeUrlAsFile instead of toURI().getPath().
(decodeUrlAsFile): New, tolerates ill-formed URLs.
(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).
-------------- next part --------------
A non-text attachment was scrubbed...
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