JDK-8062183 : Change the order of linux proxy detection
  • Type: Enhancement
  • Component: deploy
  • Affected Version: 8u40,9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: generic
  • Submitted: 2014-10-27
  • Updated: 2016-07-28
  • Resolved: 2014-11-10
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 JDK 9
8u40Fixed 9 b42Fixed
Description
Currently on linux we discover system proxy settings using the following way:
1. Check proxy settings in gnome2 config (for example, for http - /system/http_proxy/use_http_proxy, /system/http_proxy/http_proxy, ...). If they exist, use it.
2. Check proxy settings in env (for example, for http - $http_proxy,$HTTP_PROXY). If they exist, use it.
3. Check proxy settings in /etc/environment (for example, for http the keys are http_proxy, HTTP_PROXY). If they exist, use it. 

We should change the order to 2-3-1, as environment variable is override of config and gnome config is special case.
Comments
crucible: https://java.se.oracle.com/code/cru/CR-JDK9CLIENT-583
07-11-2014