JDK-7122887 : JDK ignores Gnome3 proxy settings
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: unknown
  • Submitted: 2011-12-19
  • Updated: 2023-01-11
  • Resolved: 2013-10-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8 b115Fixed
Related Reports
Relates :  
Relates :  
Description
The following simple ant script fails on recent Linux systems (I have Ubuntu 11.10):

<?xml version="1.0" encoding="UTF-8"?>
<project name="langtools" default="get" basedir=".">
<target name="get">
<get src="http://download.java.net/jaxp/1.4.5/jaxp145_01.zip" dest="."/>
</target>
</project>


If you are behind a proxy, the get task will fail; a workaround used to be to set the -autoproxy option for ant, documented here:

http://ant.apache.org/manual/proxy.html

This option will have the effect of enabling the JVM propoerty 'java.net.useSystemProxies' which, will have the JDK to look at common system-wide settings for the proxy setup. It appears the JDK is not able to look at the newer gnome3 settings which are becoming the default on modern linux platoforms.

The result is that the system proxy settings are ignored - this bug is somewhat similar to oher bugs affecting other applications who used to fetch system-wide Gnome2 data:

https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/875266

Comments
Attached regression test passed.
09-12-2013

URL: http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/c9562ac9b812 User: lana Date: 2013-11-05 21:09:17 +0000
05-11-2013

URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/c9562ac9b812 User: dxu Date: 2013-10-24 05:32:18 +0000
24-10-2013

The fix is out for review in net-dev mailing, http://cr.openjdk.java.net/~dxu/7122887/webrev.00/
23-10-2013

EVALUATION This should be fixed before JDK8 ships.
20-12-2011