United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 7146564 DefaultProxySelector should filter 0.0.0.0 and ::0 [macosx]
7146564 : DefaultProxySelector should filter 0.0.0.0 and ::0 [macosx]

Details
Type:
Bug
Submit Date:
2012-02-17
Status:
Closed
Updated Date:
2012-07-20
Project Name:
JDK
Resolved Date:
2012-07-20
Component:
core-libs
OS:
os_x
Sub-Component:
java.net
CPU:
x86,unknown
Priority:
P3
Resolution:
Fixed
Affected Versions:
7u4,7u6
Fixed Versions:
7u6

Related Reports
Duplicate:

Sub Tasks

Description
Some of our networking tests use ServerSocket.getLocalSocketAddress() to determine the local address
to which a client (in the test) must connect. Typically, this method returns the special
"any local address" value 0.0.0.0 or ::0

On *nix, a client Socket can connect to these addresses directly, but clearly they makes no sense to proxies
and need to be added to the default "no-proxy" list.

The situation on Windows is not clear and may have to be addressed in a different CR.

                                    

Comments
EVALUATION

Changeset: dce05a523e0e
Author:    michaelm
Date:      2012-06-22 10:19 +0100
URL:       http://hg.openjdk.java.net/jdk7u/jdk7u-dev/jdk/rev/dce05a523e0e

7146564: DefaultProxySelector should filter 0.0.0.0 and ::0 [macosx]
Reviewed-by: alanb, chegar

! src/share/classes/sun/net/spi/DefaultProxySelector.java
                                     
2012-07-20
EVALUATION

Add 0.0.0.0 and ::0 to default no proxy list
                                     
2012-02-17



Hardware and Software, Engineered to Work Together