[RFC] icedtea-web: use url escaping consistently in filenames
Omair Majid
omajid at redhat.com
Wed Oct 20 07:06:26 PDT 2010
On 10/19/2010 04:21 PM, Deepak Bhole wrote:
> * Omair Majid<omajid at redhat.com> [2010-10-19 16:13]:
>> Hi,
>>
>> The attached patch allows netx to work with jars with file names
>> that need to be URL escaped (such as '[' and ']'). Netx consistently
>> uses decoded URLs everywhere except in
>> JNLPClassLoader.initializeResources().
>>
>> File.toURI().toURL() encodes the filename as a URL, while
>> File.toURL() does not encode the URL.
>>
>
> To clarify.. URL location needs to stay decoded because it is used as a
> key in a hashmap which is searched by other parts of the code using
> decoded urls.
>
> Change looks okay to me. Okay for commit.
Thanks, pushed to icedtea-web.
Cheers,
Omair
More information about the distro-pkg-dev
mailing list