RFR: 8014719: HttpClient/ProxyTest.java failing with IAE HttpURLPermission.parseURI (and spec changes to HttpURLPermission)
Michael McMahon
michael.x.mcmahon at oracle.com
Wed Oct 2 10:18:29 PDT 2013
On 02/10/13 18:16, Andreas Rieber wrote:
> Hi Michael,
>
> there are a few more lines commented out in HttpURLConnection.java
>
> // }, null, p -- replace line above, when limited
> doPriv ready
>
> I guess they should be activated as well (line 1192, 1376 and 2517). I
> was already waiting for that change.
>
Right Andreas. I made the first change just before sending the webrev.
Thanks for pointing it out.
Michael.
> - Andreas
>
>
> On 02.10.2013 18:12, Michael McMahon wrote:
>> Hi,
>>
>> This is primarily a spec. change to the new HttpURLPermission class.
>>
>> The main changes are:
>>
>> 1. Rename java.net.HttpURLPermission to java.net.URLPermission.
>>
>> Even though the class is clearly intended for use with Http/s URLs it
>> isn't restricted
>> to those URL schemes.
>>
>> 2. Add some of the capabilities from SocketPermission to this class
>> too, namely:
>> - support for wildcards eg "*.foo.com"
>> - support for port ranges eg "4000-5000", or "5000-"
>>
>> There are a couple of other minor changes, such as switching to use
>> the limited doPrivileged() API.
>>
>> Webrev at: http://cr.openjdk.java.net/~michaelm/8014719/01/webrev/
>>
>> Thanks,
>> Michael.
>
More information about the net-dev
mailing list