From jaroslav.bachorik at oracle.com Thu Apr 25 07:35:39 2013 From: jaroslav.bachorik at oracle.com (Jaroslav Bachorik) Date: Thu, 25 Apr 2013 16:35:39 +0200 Subject: jmx-dev [PING] Re: [PATCH] JDK-7199324: IPv6 JMXConnectorServer.getConnectionIDs() return IDs contradicting address grammar In-Reply-To: <50D86A01.2060703@oracle.com> References: <50D302B1.7080203@oracle.com> <50D86A01.2060703@oracle.com> Message-ID: <51793F3B.9020303@oracle.com> Reviving the review process. I still need an official openjdk reviewer for this. Thanks, -JB- On 12/24/2012 03:43 PM, shanliang wrote: > The fix looks OK for me, and I can be sponsor. > > If possible I think it is better to test the fix in an IPv6 machine. It > is said that IPv6 is enabled by default on windows7 > (http://pcuserinfo.com/how-to-enable-install-and-configure-ipv6-windows-7/), > but need to be installed on XP. > > Look at the JMXServiceURL, it contains the address at which the > connector server is found: > //[host[:port]][url-path] > we can specify a IPv6 host address here. For example ::1 equivalent to > IPv4 127.0.0.1 > > But I never do it. > > Shanliang > > > Jaroslav Bachorik wrote: >> Looking for reviewers and a sponsor. >> >> Webrev is available at >> http://cr.openjdk.java.net/~jbachorik/JDK-7199324/webrev.00 >> >> The issue is about the JMX client connection ID not being generated >> accordingly to the specification when including an IPv6 address. The >> specification states that in such case the address must be enclosed in >> square brackets. The current implementation, however, returns the plain >> numeric address, contradicting the specification. >> >> The fix simply checks for the presence of ":" character in the address >> part of the connection ID and escapes the address if necessary. Since >> the ":" can be present only in a numeric IPv6 address this check is >> sufficient. >> >> The change to test just covers for checking proper escaping - I am not >> sure how to force IPv6 to be used from the test; probably it is not >> possible. The test will check the IPv6 address escaping when and only >> when the system setup will cause the JMX client to connect over IPv6. >> >> Thanks, >> >> -JB- >> > From Alan.Bateman at oracle.com Thu Apr 25 07:49:52 2013 From: Alan.Bateman at oracle.com (Alan Bateman) Date: Thu, 25 Apr 2013 15:49:52 +0100 Subject: jmx-dev [PING] Re: [PATCH] JDK-7199324: IPv6 JMXConnectorServer.getConnectionIDs() return IDs contradicting address grammar In-Reply-To: <51793F3B.9020303@oracle.com> References: <50D302B1.7080203@oracle.com> <50D86A01.2060703@oracle.com> <51793F3B.9020303@oracle.com> Message-ID: <51794290.7050806@oracle.com> On 25/04/2013 15:35, Jaroslav Bachorik wrote: > Reviving the review process. > > I still need an official openjdk reviewer for this. > > Thanks, > > -JB- Just so I understand, the issue is that RemoteServer.getClientHost is returning a String with an IPv6 literal address so you need to enclose it in [] when building the connection id. That seems reasonable to me. A minor comment on the wording of the comment it that it would be clear if there was a comma after "package description". The test looks okay to me although I had to read it a few times to understand that :// was being removed from s. -Alan.