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

AccessControlException throws in an applet if the calling unsigned jar file is in Java cache

XMLWordPrintable

    • b143
    • x86
    • windows_xp
    • Verified

      Receive the follow exception in an applet if the calling unsigned jar file
      is in the Java cache.
      On the first run or if clear the cache then this
      exception does not occur.

      It can be reproduced with Java 1.6.0_24, 1.6.0_25 and 1.7.0-ea-b134.

      It occur only with an applet and not with Java Web Start.

      1.) This is very inconsistent.
      2.) The exception should not occur.
      3.) if access http.agent then it shoudl be in a privilage context.

      java.security.AccessControlException: access denied (java.util.PropertyPermission http.agent read)
                   at java.security.AccessControlContext.checkPermission(Unknown Source)
                   at java.security.AccessController.checkPermission(Unknown Source)
                   at java.lang.SecurityManager.checkPermission(Unknown Source)
                   at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
                   at java.lang.System.getProperty(Unknown Source)
                   at com.sun.deploy.net.BasicHttpRequest.createUrlConnection(Unknown Source)
                   at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
                   at com.sun.deploy.net.BasicHttpRequest.doGetRequestEX(Unknown Source)
                   at com.sun.deploy.net.DownloadEngine.isUpdateAvailable(Unknown Source)
                   at com.sun.deploy.cache.DeployCacheHandler.get(Unknown Source)
                   at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
                   at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
                   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
                   at com.inet.jortho.WordIterator.createInflaterStream(Unknown Source)
                   at com.inet.jortho.WordIterator.<init>(Unknown Source)
                   at com.inet.jortho.DictionaryFactory.loadWordList(Unknown Source)
                   at com.inet.jortho.SpellChecker$LanguageAction$1.run(Unknown Source)
                   at java.lang.Thread.run(Unknown Source)

            nam Nam Nguyen (Inactive)
            tyao Ting-Yun Ingrid Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: