Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8048089

ClientConfig.refreshIfNeeded() doesn't restore properties with "active." prefix.

    Details

    • Resolved In Build:
      b09

      Backports

        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.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dtitov Daniil Titov
                  Reporter:
                  dtitov Daniil Titov
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: