hg: jdk8/tl/jdk: 6594296: NetworkInterface.getHardwareAddress returns zero length byte array

2013-05-01 Thread chris . hegarty
Changeset: 17cf61ff Author:chegar Date: 2013-05-01 10:03 +0100 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/17cf61ff 6594296: NetworkInterface.getHardwareAddress returns zero length byte array Reviewed-by: alanb ! src/windows/native/java/net/NetworkInterface_winXP.c ! te

Re: API change for 8010464: Evolve java networking same origin policy

2013-05-01 Thread Dmitry Samersoff
Michael, > "GET,POST:Header1,Header2" Colon is a delimiter between http header and it's value. With this syntax we might have problems in a future if sometimes we will support different headers for different methods or add an ability to check header value as well. -Dmitry On 2013-04-30 14:30,

hg: jdk8/tl/jdk: 2 new changesets

2013-05-01 Thread chris . hegarty
Changeset: 73793f2af80a Author:msheppar Date: 2013-04-30 16:24 +0100 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/73793f2af80a 8007799: Base64.getEncoder(0, byte[]) returns an encoder that unexpectedly inserts line separators Reviewed-by: sherman, iris ! src/share/classes/java/

Re: API change for 8010464: Evolve java networking same origin policy

2013-05-01 Thread Michael McMahon
On 01/05/13 11:09, Dmitry Samersoff wrote: Michael, "GET,POST:Header1,Header2" Colon is a delimiter between http header and it's value. With this syntax we might have problems in a future if sometimes we will support different headers for different methods or add an ability to check header va

Re: API change for 8010464: Evolve java networking same origin policy

2013-05-01 Thread Dmitry Samersoff
Michael, I'm just asking about replacing : (colon) to another character to be able to write something like: permission java.net.HttpURLPermission "http://www.foo.com/-";, "GET Location: http://www.foo.com/*, Content-type: image/jpeg"; in a future -Dmitry. On 2013-05-01 15:04, Michael McMaho

Re: API change for 8010464: Evolve java networking same origin policy

2013-05-01 Thread Michael McMahon
Ah right. The permission only contains header names. It never contains header values. And header names are "tokens" in the Http spec that cannot contain a colon character. Michael On 01/05/13 12:11, Dmitry Samersoff wrote: Michael, I'm just asking about replacing : (colon) to another character

Re: API change for 8010464: Evolve java networking same origin policy

2013-05-01 Thread Dmitry Samersoff
Michael, Sorry for not being clean enough. On my opinion an ability to check header value as well as a header name is quite useful future for the real world. e.g. to being able to prevent redirection to other domain or limit certain content type etc. I understand, that these changes is out of s

Re: API change for 8010464: Evolve java networking same origin policy

2013-05-01 Thread Michael McMahon
Another possibility if we were to do that in the future, could be: "GET,POST:Header1=value 1,Header2=value 2" - Michael On 01/05/13 12:38, Dmitry Samersoff wrote: Michael, Sorry for not being clean enough. On my opinion an ability to check header value as well as a header name is quite usefu

Re: API change for 8010464: Evolve java networking same origin policy

2013-05-01 Thread Dmitry Samersoff
Michael, On 2013-05-01 16:40, Michael McMahon wrote: > Another possibility if we were to do that in the future, could be: > > "GET,POST:Header1=value 1,Header2=value 2" Variant with space looks more natural for me as it follows HTTP header syntax. But it's up to you to make a decision. -Dmitry

hg: jdk8/tl/jdk: 8012082: SASL: auth-conf negotiated, but unencrypted data is accepted, reset to unencrypt

2013-05-01 Thread weijun . wang
Changeset: ae4a82e69da2 Author:weijun Date: 2013-05-01 21:05 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/ae4a82e69da2 8012082: SASL: auth-conf negotiated, but unencrypted data is accepted, reset to unencrypt Reviewed-by: vinnie ! src/share/classes/com/sun/security/sasl/g

hg: jdk8/tl/jdk: 8012665: add CharSequence.chars, CharSequence.codePoints

2013-05-01 Thread mike . duigou
Changeset: c6aef650e615 Author:mduigou Date: 2013-05-01 08:35 -0700 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/c6aef650e615 8012665: add CharSequence.chars, CharSequence.codePoints Reviewed-by: martin, alanb, ulfzibis, mduigou Contributed-by: Stuart Marks , Henry Jen ! src/s

Code Review Request: 8013140: Heap corruption with NetworkInterface.getByInetAddress() and long i/f name

2013-05-01 Thread Kurchi Subhra Hazra
Hi, NetworkInterface.getByInetAddress() was crashing on solaris when the system had a network interface name longer than 15 characters, due to two instances in the native code for NetworkInterface where we were copying a char array of size 32 (LIFNAMSIZ) into a char array of size 16 (IFNAMS