RFR: 8014719: HttpClient/ProxyTest.java failing with IAE HttpURLPermission.parseURI (and spec changes to HttpURLPermission)

Andreas Rieber rieberandreas at gmail.com
Wed Oct 2 10:16:59 PDT 2013


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.

- 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