JDK-8048089 : ClientConfig.refreshIfNeeded() doesn't restore properties with "active." prefix.
  • Type: Bug
  • Component: deploy
  • Affected Version: 8u20
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-06-25
  • Updated: 2015-06-03
  • Resolved: 2014-09-30
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 7 JDK 8 JDK 9
7u76Fixed 8u31Fixed 9Fixed
Description
1. Add following properties in deployment.properties file 
deployment.proxy.type=2 
deployment.proxy.auto.config.url=http\://wpad.us.oracle.com/wpad.dat 
2. Open http://www.java.com/en/download/installed.jsp?detect=jre in browser. 

In some cased browse proxy proxy handler is used instead of auto proxy handler.

This happens since DynamicProxyManager.reset() calls UserDefinedProxyConfig.getBrowserProxyInfo()
and latter calls  Config.get().refreshIfNeeded() that in some cases (when refresh really happens) clears all properties and resets them but skipping ones started with "active." prefix. As result consequent call to
Config.getProxyType() returns -1 and default value (browser proxy) is used.


Comments
Critical request: - Justification: this problem highly affects user experience in proxy settings usage. - Risk Analysis: Low, the fix is pretty simple. - Webrev: https://java.se.oracle.com/code/cru/CR-JDK9CLIENT-503 - Testing (done/to-be-done): Automatic regression test is included. - Back ports (done/to-be-done): Done - FX Impact: No
21-11-2014