Details
-
Sub-task
-
Resolution: Fixed
-
P3
-
None
-
b08
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8327508 | 17.0.12-oracle | Ramesh Gangadhar | P3 | Resolved | Fixed | b01 |
JDK-8328968 | 17.0.12 | Goetz Lindenmaier | P3 | Resolved | Fixed | b01 |
JDK-8327511 | 11.0.24-oracle | Ramesh Gangadhar | P3 | Resolved | Fixed | b01 |
JDK-8329406 | 11.0.24 | Goetz Lindenmaier | P3 | Resolved | Fixed | b01 |
Description
Some of the JDK networking tests hard-code as the 127.0.0.1 loopback address. This works on IPv4 or IPv6&IPv4 network. However, with IPv6-only network, those tests with hard-coded address fail. The following fix would work for IPv4, IPv6&IPv4, and IPv6-only environment:
- so = new Socket("127.0.0.1", port);
+ so = new Socket(InetAddress.getLoopbackAddress(), port);
The following tests are still affected:
* jdk/javax/net/ssl/TLS/TestJSSE.java
* jdk/javax/net/ssl/sanity/interop/JSSEClient.java
Attachments
Issue Links
- backported by
-
JDK-8327508 Remove hard-coded 127.0.0.1 loopback address
- Resolved
-
JDK-8327511 Remove hard-coded 127.0.0.1 loopback address
- Resolved
-
JDK-8328968 Remove hard-coded 127.0.0.1 loopback address
- Resolved
-
JDK-8329406 Remove hard-coded 127.0.0.1 loopback address
- Resolved
- links to
-
Commit openjdk/jdk11u-dev/e922114f
-
Commit openjdk/jdk17u-dev/432210b4
-
Commit openjdk/jdk/b5de2cc9
-
Review openjdk/jdk11u-dev/2634
-
Review openjdk/jdk17u-dev/2315
-
Review openjdk/jdk/7209