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)
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)
- duplicates
-
JDK-8170339 At step5: An Error dialog shown up when running "javaws -uninstall http://localhost:8080/CommandLine/jnlp/hello.jnlp".
-
- Closed
-