Re: RFR: 8244958: preferIPv4Stack and preferIPv6Addresses do not affect addresses returned by HostsFileNameService

2020-05-22 Thread Daniel Fuchs
Hi Aleksei, I believe I'd prefer to move these two lines: 322 String prefer4 = GetPropertyAction.privilegedGetProperty("java.net.preferIPv4Stack"); 323 onlyIPv4Addresses = Boolean.parseBoolean(prefer4); 324 (and the declaration of onlyIPv4Addresses) to the HostsFileNameServ

Re: RFR 8241389: URLConnection::getHeaderFields returns result inconsistent with getHeaderField/Key for FileURLConnection, FtpURLConnection

2020-05-22 Thread Daniel Fuchs
Looks good Michael. Probably deserves testing with tier1-3 to make sure all subtypes of s.n.w.URLConnection are tested. best regards, -- daniel On 22/05/2020 19:07, Michael McMahon wrote: Daniel, Yes, good point. The webrev is updated in place at: http://cr.openjdk.java.net/~michaelm/824138

Re: RFR 8241389: URLConnection::getHeaderFields returns result inconsistent with getHeaderField/Key for FileURLConnection, FtpURLConnection

2020-05-22 Thread Michael McMahon
Daniel, Yes, good point. The webrev is updated in place at: http://cr.openjdk.java.net/~michaelm/8241389/webrev.2/ Thanks, Michael On 22/05/2020 16:29, Daniel Fuchs wrote: Hi Michael,  126 } catch (IOException e) {  127 headerFields = super.getHeaderFields();  12

RE: [JBS] {Updated} (JDK-8245517) java/net/SocketOption/AfterClose.java fails with Invalid value 'READ_ONLY'

2020-05-22 Thread Viswanathan, Sandhya
Thanks Daniel and Patrick. We will push the following for this: http://cr.openjdk.java.net/~sviswanathan/Vladimir/8245517/webrev.01/ Best Regards, Sandhya -Original Message- From: net-dev On Behalf Of Daniel Fuchs Sent: Friday, May 22, 2020 8:21 AM To: Patrick Concannon ; Ivanov, Vladim

RFR: 8244958: preferIPv4Stack and preferIPv6Addresses do not affect addresses returned by HostsFileNameService

2020-05-22 Thread Aleks Efimov
Hi, The "java.net.preferIPv4Stack" and "java.net.preferIPv6Addresses" system properties do not affect the addresses and their order, returned by the HostsFileNameService provider that can be created by specifying "jdk.net.hosts.file" system property. The following fix analyses the system prope

Re: RFR 8241389: URLConnection::getHeaderFields returns result inconsistent with getHeaderField/Key for FileURLConnection, FtpURLConnection

2020-05-22 Thread Daniel Fuchs
Hi Michael, 126 } catch (IOException e) { 127 headerFields = super.getHeaderFields(); 128 } I'm not sure that's correct. Could a second attempt to connect() succeed later? If so it would be more correct to return super.getHeaderFields() without setting

Re: RFR 15 8243099: SO_INCOMING_NAPI_ID support

2020-05-22 Thread Daniel Fuchs
Hi Vladimir, The tests came back green :-) You're good to go for JDK-8245569. best regards, -- daniel On 21/05/2020 20:38, Daniel Fuchs wrote: Hi Vladimir, That looks good. Give me time to send that to our test system and I'll report back. best regards, -- daniel On 21/05/2020 18:07, Iva

Re: [JBS] {Updated} (JDK-8245517) java/net/SocketOption/AfterClose.java fails with Invalid value 'READ_ONLY'

2020-05-22 Thread Daniel Fuchs
On 22/05/2020 10:07, Patrick Concannon wrote: The test AfterClose.java was added to ProblemList.txt after it was seen to be failing[1]. You'll need to remove it from the list along with your proposed fix. Right. Thanks for chiming in Patrick! Vladimir, I ran your patch after removing AfterClos

Re: RFR 8241389: URLConnection::getHeaderFields returns result inconsistent with getHeaderField/Key for FileURLConnection, FtpURLConnection

2020-05-22 Thread Michael McMahon
Thanks for the comments Daniel. Webrev updated at: http://cr.openjdk.java.net/~michaelm/8241389/webrev.2/ - Michael On 22/05/2020 15:28, Daniel Fuchs wrote: Hi Michael, Two comments: URLConnection.java: 1. I don't think getHeaderFields() should return null,    but an empty map instead.  12

Re: RFR 8241389: URLConnection::getHeaderFields returns result inconsistent with getHeaderField/Key for FileURLConnection, FtpURLConnection

2020-05-22 Thread Daniel Fuchs
Hi Michael, Two comments: URLConnection.java: 1. I don't think getHeaderFields() should return null, but an empty map instead. 122 return null; should probably return super.getHeaderFields(); instead. 2. Other methods in this class seem to assume that `properties` c

Re: 8235761: (httpclient) Investigate support for multipart/form-data in BodyPublishers

2020-05-22 Thread Chris Hegarty
Thanks for posting here Moataz, I am busy with other work at the moment, but just to say that providing some level of support for multipart has come up a number of times (it is very useful). The built-in body publishers and subscribers are deliberately minimal, but it does seem that, at least,

RFR 8241389: URLConnection::getHeaderFields returns result inconsistent with getHeaderField/Key for FileURLConnection, FtpURLConnection

2020-05-22 Thread Michael McMahon
Hi, Could I get the following fix reviewed please? It is related to the issue reviewed earlier, but requires a code change instead of a spec update. Bug: https://bugs.openjdk.java.net/browse/JDK-8241389 Webrev: http://cr.openjdk.java.net/~michaelm/8241389/webrev.1/index.html Thanks, Michael.

RE: RFR: 8243376 java.net.SocketPermission.implies(Permission p) spec is mismatching with implementation

2020-05-22 Thread Jayashree Sk1
Hi Michael Thanks for the detailed explanation. I'll start work for the possibility for multiple cname objects. Regards Jay -Michael McMahon wrote: - To: Jayashree Sk1 From: Michael McMahon Date: 05/22/2020 06:06PM Cc: net-dev@openjdk.java.net Subject: [EXTERNAL] Re: RFR: 824337

Re: RFR: 8243376 java.net.SocketPermission.implies(Permission p) spec is mismatching with implementation

2020-05-22 Thread Michael McMahon
Hi Jay, What I was referring to is something different. DNS reverse lookups don't use CNAME records. They use PTR records constructed from the IP address written in reverse and suffixed with .in-addr.arpa. So, to do a reverse lookup of 183.79.131.212, you must look for a PTR record at 212.131.

Re: RFR [15] 8241378: j.net.URLConnection::getHeaderFieldKey(int) behavior does not reliably conform to its specification

2020-05-22 Thread Chris Hegarty
LGTM. -Chris. > On 22 May 2020, at 09:53, Daniel Fuchs wrote: > > Hi Michael, > > This looks good to me. > > best regards, > > -- daniel > > On 22/05/2020 09:36, Michael McMahon wrote: >> Hi, >> Could I get the following small spec clarification reviewed please? >> Bug: https://bugs.openjdk

RE: RFR: 8243376 java.net.SocketPermission.implies(Permission p) spec is mismatching with implementation

2020-05-22 Thread Jayashree Sk1
Hi Michael Below are my findings: 1. The fix would have to account for the possibility of multiple canonical names (obtained from DNS reverse lookup). Ans: There is no need for us consider the multiple addresses in getCanonName because, each of the multiple ip’s DNS reverse lookup with always

Re: [JBS] {Updated} (JDK-8245517) java/net/SocketOption/AfterClose.java fails with Invalid value 'READ_ONLY'

2020-05-22 Thread Patrick Concannon
Hi Vladimir, The test AfterClose.java was added to ProblemList.txt after it was seen to be failing[1]. You'll need to remove it from the list along with your proposed fix. [1] https://bugs.openjdk.java.net/browse/JDK-8245518 Kind regards, Patrick On 21/05/2020 20:31, Daniel Fuchs wrote:

Re: RFR [15] 8241378: j.net.URLConnection::getHeaderFieldKey(int) behavior does not reliably conform to its specification

2020-05-22 Thread Daniel Fuchs
Hi Michael, This looks good to me. best regards, -- daniel On 22/05/2020 09:36, Michael McMahon wrote: Hi, Could I get the following small spec clarification reviewed please? Bug: https://bugs.openjdk.java.net/browse/JDK-8241378 CSR: https://bugs.openjdk.java.net/browse/JDK-8245582 Webrev

RFR [15] 8241378: j.net.URLConnection::getHeaderFieldKey(int) behavior does not reliably conform to its specification

2020-05-22 Thread Michael McMahon
Hi, Could I get the following small spec clarification reviewed please? Bug: https://bugs.openjdk.java.net/browse/JDK-8241378 CSR: https://bugs.openjdk.java.net/browse/JDK-8245582 Webrev: http://cr.openjdk.java.net/~michaelm/8241378/webrev.1/index.html Thanks, Michael.