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

loading browser proxy via config script should not trigger JAR download

    Details

    • Subcomponent:
    • Introduced In Version:
    • Resolved In Build:
      b01
    • Verification:
      Verified

      Backports

        Description

        while investigating jdk-8028530, I noticed a problem where proxy lookup trigger JAR download, which seems incorrect:

        java.lang.Exception: Stack trace
        at java.lang.Thread.dumpStack(Unknown Source)
        at com.sun.deploy.net.HttpDownloadHelper.download(HttpDownloadHelper.java:101)
        at com.sun.deploy.cache.Cache.downloadResourceToTempFile(Cache.java:690)
        at com.sun.deploy.cache.Cache.downloadResourceToCache(Cache.java:653)
        at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
        at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
        at com.sun.deploy.cache.ResourceProviderImpl.getResource(ResourceProviderImpl.java:266)
        at com.sun.deploy.cache.ResourceProviderImpl.getResource(ResourceProviderImpl.java:220)
        at sun.plugin2.applet.JNLP2ClassLoader$2.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.plugin2.applet.JNLP2ClassLoader.getJarFile(Unknown Source)
        at com.sun.jnlp.JNLPCachedJarURLConnection.connect(Unknown Source)
        at com.sun.jnlp.JNLPCachedJarURLConnection.getJarFile(Unknown Source)
        at com.sun.deploy.security.DeployURLClassPath$JarLoader.getJarFile(DeployURLClassPath.java:812)
        at com.sun.deploy.security.DeployURLClassPath$JarLoader.access$1000(DeployURLClassPath.java:727)
        at com.sun.deploy.security.DeployURLClassPath$JarLoader$1.run(DeployURLClassPath.java:764)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.deploy.security.DeployURLClassPath$JarLoader.ensureOpen(DeployURLClassPath.java:758)
        at com.sun.deploy.security.DeployURLClassPath$JarLoader.<init>(DeployURLClassPath.java:747)
        at com.sun.deploy.security.DeployURLClassPath$3.run(DeployURLClassPath.java:432)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.deploy.security.DeployURLClassPath.getLoader(DeployURLClassPath.java:421)
        at com.sun.deploy.security.DeployURLClassPath.getLoader(DeployURLClassPath.java:396)
        at com.sun.deploy.security.DeployURLClassPath.access$000(DeployURLClassPath.java:65)
        at com.sun.deploy.security.DeployURLClassPath$1.next(DeployURLClassPath.java:284)
        at com.sun.deploy.security.DeployURLClassPath$1.hasMoreElements(DeployURLClassPath.java:296)
        at java.net.URLClassLoader$3$1.run(Unknown Source)
        at java.net.URLClassLoader$3$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader$3.next(Unknown Source)
        at java.net.URLClassLoader$3.hasMoreElements(Unknown Source)
        at sun.misc.CompoundEnumeration.next(Unknown Source)
        at sun.misc.CompoundEnumeration.hasMoreElements(Unknown Source)
        at sun.misc.Service$LazyIterator.hasNext(Unknown Source)
        at javax.script.ScriptEngineManager.initEngines(Unknown Source)
        at javax.script.ScriptEngineManager.access$000(Unknown Source)
        at javax.script.ScriptEngineManager$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.script.ScriptEngineManager.init(Unknown Source)
        at javax.script.ScriptEngineManager.<init>(Unknown Source)
        at com.sun.deploy.net.proxy.SunAutoProxyHandler.getProxyInfo(SunAutoProxyHandler.java:68)
        at com.sun.deploy.net.proxy.DynamicProxyManager.getProxyList(DynamicProxyManager.java:79)
        at com.sun.deploy.net.proxy.DeployProxySelector.select(DeployProxySelector.java:165)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
        at com.sun.deploy.net.BasicHttpRequest.doRequest(BasicHttpRequest.java:171)
        at com.sun.deploy.net.BasicHttpRequest.doGetRequestEX(BasicHttpRequest.java:54)
        at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
        at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
        at com.sun.deploy.cache.ResourceProviderImpl.getResource(ResourceProviderImpl.java:266)
        at com.sun.deploy.cache.ResourceProviderImpl.getResource(ResourceProviderImpl.java:220)
        at sun.plugin2.applet.JNLP2ClassLoader$2.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.plugin2.applet.JNLP2ClassLoader.getJarFile(Unknown Source)
        at com.sun.jnlp.JNLPCachedJarURLConnection.connect(Unknown Source)
        at com.sun.jnlp.JNLPCachedJarURLConnection.getJarFile(Unknown Source)
        at com.sun.deploy.security.DeployURLClassPath$JarLoader.getJarFile(DeployURLClassPath.java:812)
        at com.sun.deploy.security.DeployURLClassPath$JarLoader.access$1000(DeployURLClassPath.java:727)
        at com.sun.deploy.security.DeployURLClassPath$JarLoader$1.run(DeployURLClassPath.java:764)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.deploy.security.DeployURLClassPath$JarLoader.ensureOpen(DeployURLClassPath.java:758)
        at com.sun.deploy.security.DeployURLClassPath$JarLoader.<init>(DeployURLClassPath.java:747)
        at com.sun.deploy.security.DeployURLClassPath$3.run(DeployURLClassPath.java:432)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.deploy.security.DeployURLClassPath.getLoader(DeployURLClassPath.java:421)
        at com.sun.deploy.security.DeployURLClassPath.getLoader(DeployURLClassPath.java:396)
        at com.sun.deploy.security.DeployURLClassPath.access$000(DeployURLClassPath.java:65)
        at com.sun.deploy.security.DeployURLClassPath$1.next(DeployURLClassPath.java:284)
        at com.sun.deploy.security.DeployURLClassPath$1.hasMoreElements(DeployURLClassPath.java:296)
        at java.net.URLClassLoader$3$1.run(Unknown Source)
        at java.net.URLClassLoader$3$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader$3.next(Unknown Source)
        at java.net.URLClassLoader$3.hasMoreElements(Unknown Source)
        at sun.misc.CompoundEnumeration.next(Unknown Source)
        at sun.misc.CompoundEnumeration.hasMoreElements(Unknown Source)
        at sun.misc.CompoundEnumeration.next(Unknown Source)
        at sun.misc.CompoundEnumeration.hasMoreElements(Unknown Source)
        at sun.misc.Service$LazyIterator.hasNext(Unknown Source)
        at javax.script.ScriptEngineManager.initEngines(Unknown Source)
        at javax.script.ScriptEngineManager.access$000(Unknown Source)
        at javax.script.ScriptEngineManager$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.script.ScriptEngineManager.init(Unknown Source)
        at javax.script.ScriptEngineManager.<init>(Unknown Source)
        at com.sun.deploy.net.proxy.SunAutoProxyHandler.getProxyInfo(SunAutoProxyHandler.java:68)
        at com.sun.deploy.net.proxy.DynamicProxyManager.getProxyList(DynamicProxyManager.java:79)
        at com.sun.deploy.net.proxy.DeployProxySelector.select(DeployProxySelector.java:165)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
        at com.sun.deploy.net.BasicHttpRequest.doRequest(BasicHttpRequest.java:171)
        at com.sun.deploy.net.BasicHttpRequest.doGetRequestEX(BasicHttpRequest.java:54)
        at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
        at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
        at com.sun.deploy.cache.ResourceProviderImpl.getResource(ResourceProviderImpl.java:266)
        at com.sun.deploy.cache.ResourceProviderImpl.getResource(ResourceProviderImpl.java:220)
        at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ngthomas Thomas Ng (Inactive)
                  Reporter:
                  ngthomas Thomas Ng (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  9 Start watching this issue

                  Dates

                  • Due:
                    Created:
                    Updated:
                    Resolved: