8251155: HostIdentifier fails to canonicalize hostnames starting with digits(Internet mail)

jiefu(傅杰) jiefu at tencent.com
Mon Aug 17 15:13:03 UTC 2020


Ping…
Any comments?

Thanks.
Best regards,
Jie

From: serviceability-dev <serviceability-dev-retn at openjdk.java.net> on behalf of "jiefu(傅杰)" <jiefu at tencent.com>
Date: Friday, August 7, 2020 at 7:44 AM
To: "serviceability-dev at openjdk.java.net" <serviceability-dev at openjdk.java.net>
Subject: Re: RFR: 8251155: HostIdentifier fails to canonicalize hostnames starting with digits(Internet mail)

FYI:

  This bug will lead to failures of the following tests on machines with hostname starting from digits.
    - test/jdk/sun/tools/jstatd/TestJstatdExternalRegistry.java
    - test/jdk/sun/tools/jstatd/TestJstatdPort.java
    - test/jdk/sun/tools/jstatd/TestJstatdPortAndServer.java
    - test/jdk/sun/tools/jstatd/TestJstatdRmiPort.java

So it's worth fixing it.

Testing:
  - tier1-3 on Linux/x64

Thanks.
Best regards,
Jie

From: "jiefu(傅杰)" <jiefu at tencent.com>
Date: Wednesday, August 5, 2020 at 3:19 PM
To: "serviceability-dev at openjdk.java.net" <serviceability-dev at openjdk.java.net>
Subject: RFR: 8251155: HostIdentifier fails to canonicalize hostnames starting with digits

Hi all,

JBS:    https://bugs.openjdk.java.net/browse/JDK-8251155
Webrev: http://cr.openjdk.java.net/~jiefu/8251155/webrev.00/

HostIdentifier fails to canonicalize hostname:port if the hostname starts with digits.
The current implementation will get "scheme = hostname".
But the scheme should not be started with digits, which leads to this bug.

Thanks a lot.
Best regards,
Jie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20200817/91e2dddb/attachment.htm>


More information about the serviceability-dev mailing list