JDK-8292530 : JVM uses https_proxy environment variable
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 17
  • Priority: P4
  • Status: New
  • Resolution: Unresolved
  • OS: windows_10
  • CPU: x86_64
  • Submitted: 2022-08-16
  • Updated: 2022-08-17
Related Reports
Relates :  
Description
A DESCRIPTION OF THE PROBLEM :
Currently JVM is the only software that refuses to obey standard https_proxy variable and requires custom configuration using JVM flags.

PS. This should also work on Windows and take precedence over IE settings. If user is setting this variables they know what they are doing.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
export https_proxy=your.proxy:8080

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Java uses proxy
ACTUAL -
Java does not use proxy

CUSTOMER SUBMITTED WORKAROUND :
Use JVM flags -Dhttp.proxyHost= -Dhttp.proxyPort=

FREQUENCY : always



Comments
It looks like an enhancement. Moved to JDK for further evaluations.
17-08-2022