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

Fail to remove the specific application by "javaws -uninstall URL"

    • b151
    • Verified

      ENV: win7/x86/jre9-b146

      Steps to reproduce:
      1. Import an application from CMD: javaws -import http://sqeweb.us.oracle.com/net/scanas415/export/deployment/crystal/DO_NOT_REMOVE_ME/jrebug/batJavaws/jnlp/testBAT.jnlp
      2. Launch cache viewer: javaws -viewer. Select "Applications" view, check there should an entry in it with name "BAT" and type "Application"
      3. Run CMD: javaws -uninstall http://sqeweb.us.oracle.com/net/scanas415/export/deployment/crystal/DO_NOT_REMOVE_ME/jrebug/batJavaws/jnlp/testBAT.jnlp
      4. If an Error dialog shows up with message "access denied ("java.util.PropertyPermission" "user.dir" "read")" and the application BAT fails to get removed from Cache, this bug is reproduced. See attachment javaws-uninstall-jnlp.png

      Error log:
      java.security.AccessControlException: access denied ("java.util.PropertyPermission" "user.dir" "read")
      at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:471)
      at java.base/java.security.AccessController.checkPermission(AccessController.java:894)
      at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:548)
      at java.base/java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1292)
      at java.base/java.lang.System.getProperty(System.java:761)
      at java.base/java.io.WinNTFileSystem.getUserPath(WinNTFileSystem.java:344)
      at java.base/java.io.WinNTFileSystem.resolve(WinNTFileSystem.java:307)
      at java.base/java.io.File.getAbsolutePath(File.java:556)
      at jdk.deploy@9-ea/com.sun.deploy.cache.CacheEntry.invalidateEntryDueToException(CacheEntry.java:291)
      at jdk.deploy@9-ea/com.sun.deploy.cache.CacheEntry.access$100(CacheEntry.java:156)
      at jdk.deploy@9-ea/com.sun.deploy.cache.CacheEntry$1.run(CacheEntry.java:334)
      at jdk.deploy@9-ea/com.sun.deploy.cache.CacheEntry$1.run(CacheEntry.java:327)
      at java.base/java.security.AccessController.doPrivileged(Native Method)
      at jdk.deploy@9-ea/com.sun.deploy.cache.CacheEntry.<init>(CacheEntry.java:326)
      at jdk.deploy@9-ea/com.sun.deploy.cache.Cache.getCacheEntryFromFile(Cache.java:1757)
      at jdk.deploy@9-ea/com.sun.deploy.cache.Cache.getCacheEntryFromFileIncludeTempJNLP(Cache.java:1727)
      at jdk.deploy@9-ea/com.sun.deploy.cache.ResourceProviderImpl.getResourceObject(ResourceProviderImpl.java:566)
      at jdk.javaws@9-ea/com.sun.javaws.Main.uninstall(Main.java:611)
      at jdk.javaws@9-ea/com.sun.javaws.Main.uninstallCache(Main.java:170)
      at jdk.plugin@9-ea/sun.plugin2.main.WebStart.continueInSecureThread(WebStart.java:91)
      at jdk.plugin@9-ea/sun.plugin2.main.WebStart.access$000(WebStart.java:48)
      at jdk.plugin@9-ea/sun.plugin2.main.WebStart$1.run(WebStart.java:71)
      at java.base/java.lang.Thread.run(Thread.java:844)

          Loading...
          Uploaded image for project: 'JDK'
          1. JDK
          2. JDK-8170380

          Fail to remove the specific application by "javaws -uninstall URL"

            • b151
            • Verified

              ENV: win7/x86/jre9-b146

              Steps to reproduce:
              1. Import an application from CMD: javaws -import http://sqeweb.us.oracle.com/net/scanas415/export/deployment/crystal/DO_NOT_REMOVE_ME/jrebug/batJavaws/jnlp/testBAT.jnlp
              2. Launch cache viewer: javaws -viewer. Select "Applications" view, check there should an entry in it with name "BAT" and type "Application"
              3. Run CMD: javaws -uninstall http://sqeweb.us.oracle.com/net/scanas415/export/deployment/crystal/DO_NOT_REMOVE_ME/jrebug/batJavaws/jnlp/testBAT.jnlp
              4. If an Error dialog shows up with message "access denied ("java.util.PropertyPermission" "user.dir" "read")" and the application BAT fails to get removed from Cache, this bug is reproduced. See attachment javaws-uninstall-jnlp.png

              Error log:
              java.security.AccessControlException: access denied ("java.util.PropertyPermission" "user.dir" "read")
              at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:471)
              at java.base/java.security.AccessController.checkPermission(AccessController.java:894)
              at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:548)
              at java.base/java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1292)
              at java.base/java.lang.System.getProperty(System.java:761)
              at java.base/java.io.WinNTFileSystem.getUserPath(WinNTFileSystem.java:344)
              at java.base/java.io.WinNTFileSystem.resolve(WinNTFileSystem.java:307)
              at java.base/java.io.File.getAbsolutePath(File.java:556)
              at jdk.deploy@9-ea/com.sun.deploy.cache.CacheEntry.invalidateEntryDueToException(CacheEntry.java:291)
              at jdk.deploy@9-ea/com.sun.deploy.cache.CacheEntry.access$100(CacheEntry.java:156)
              at jdk.deploy@9-ea/com.sun.deploy.cache.CacheEntry$1.run(CacheEntry.java:334)
              at jdk.deploy@9-ea/com.sun.deploy.cache.CacheEntry$1.run(CacheEntry.java:327)
              at java.base/java.security.AccessController.doPrivileged(Native Method)
              at jdk.deploy@9-ea/com.sun.deploy.cache.CacheEntry.<init>(CacheEntry.java:326)
              at jdk.deploy@9-ea/com.sun.deploy.cache.Cache.getCacheEntryFromFile(Cache.java:1757)
              at jdk.deploy@9-ea/com.sun.deploy.cache.Cache.getCacheEntryFromFileIncludeTempJNLP(Cache.java:1727)
              at jdk.deploy@9-ea/com.sun.deploy.cache.ResourceProviderImpl.getResourceObject(ResourceProviderImpl.java:566)
              at jdk.javaws@9-ea/com.sun.javaws.Main.uninstall(Main.java:611)
              at jdk.javaws@9-ea/com.sun.javaws.Main.uninstallCache(Main.java:170)
              at jdk.plugin@9-ea/sun.plugin2.main.WebStart.continueInSecureThread(WebStart.java:91)
              at jdk.plugin@9-ea/sun.plugin2.main.WebStart.access$000(WebStart.java:48)
              at jdk.plugin@9-ea/sun.plugin2.main.WebStart$1.run(WebStart.java:71)
              at java.base/java.lang.Thread.run(Thread.java:844)

                    herrick Andy Herrick (Inactive)
                    wenjyang Crystal Yang (Inactive)
                    Votes:
                    0 Vote for this issue
                    Watchers:
                    5 Start watching this issue

                      Created:
                      Updated:
                      Resolved:

                        herrick Andy Herrick (Inactive)
                        wenjyang Crystal Yang (Inactive)
                        Votes:
                        0 Vote for this issue
                        Watchers:
                        5 Start watching this issue

                          Created:
                          Updated:
                          Resolved: