-
Bug
-
Resolution: Fixed
-
P3
-
8u112, 9
-
b156
-
generic
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8174576 | 10 | Christoph Langer | P3 | Resolved | Fixed | b01 |
Currently, DefaultProxySelector behaves differently on various platforms
On Windows, it only uses a manually configured proxy URL setting from the registry. If the system uses automatic configuration this will not be considered.
On Mac, the problem is similar. The VM reads the system wide proxy configuration on startup, but only if it uses a manually configured proxy host. Again, automatic proxy configuration through a PAC file or WPAD will be ignored.
On Linux, we already use libgio to get a potential list of proxies in cases where the user configured an automatic proxy configuration. But the native function Java_sun_net_DefaultProxySelector_getSystemProxy currently only returns the first entry of such a list although the public Java function sun.net.DefaultProxySelector.select() retuns a list of proxies.
This bug is for fixing Windows and MacOS to query the corresponding native APIs to get the "real" proxy hosts, even if the user configured automatic proxy configuration. It also fixes the native methods Java_sun_net_DefaultProxySelector_getSystemProxy to return the full list of proxies in cases where there is more than one proxy available (due to automatic configuration).
On Windows, it only uses a manually configured proxy URL setting from the registry. If the system uses automatic configuration this will not be considered.
On Mac, the problem is similar. The VM reads the system wide proxy configuration on startup, but only if it uses a manually configured proxy host. Again, automatic proxy configuration through a PAC file or WPAD will be ignored.
On Linux, we already use libgio to get a potential list of proxies in cases where the user configured an automatic proxy configuration. But the native function Java_sun_net_DefaultProxySelector_getSystemProxy currently only returns the first entry of such a list although the public Java function sun.net.DefaultProxySelector.select() retuns a list of proxies.
This bug is for fixing Windows and MacOS to query the corresponding native APIs to get the "real" proxy hosts, even if the user configured automatic proxy configuration. It also fixes the native methods Java_sun_net_DefaultProxySelector_getSystemProxy to return the full list of proxies in cases where there is more than one proxy available (due to automatic configuration).
- backported by
-
JDK-8174576 DefaultProxySelector should use system defaults on Windows, MacOS and Gnome
- Resolved
- duplicates
-
JDK-7131142 [macosx] DefaultProxySelector for macosx needed to query system dynamically
- Closed
-
JDK-8025065 "Bypass proxy server for local addresses" not taken into account
- Closed
- relates to
-
JDK-8316433 net.dll should delay load winhttp.dll
- Resolved
-
JDK-7014531 [windows] DefaultProxySelector doesn't handle wildcard characters in bypass list
- Open
-
JDK-7122887 JDK ignores Gnome3 proxy settings
- Closed
(1 relates to)