-
Bug
-
Resolution: Fixed
-
P1
-
10
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8197895 | 11 | Andy Herrick | P1 | Resolved | Fixed | b01 |
JDK-8200847 | 10.0.2 | Unassigned | P1 | Resolved | Fixed | b01 |
JDK-8201940 | 10u-open | Andy Herrick | P1 | Resolved | Fixed | master |
JDK-8197862 | 10 | Andy Herrick | P1 | Resolved | Fixed | b44 |
java version "10-ea" 2018-03-20
Java(TM) SE Runtime Environment 18.3 (build 10-ea+41)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10-ea+41, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 10.0.16299.192]
A DESCRIPTION OF THE PROBLEM :
The build in class java.base/java.util.zip.ZipFile$CleanableResource try to access to getDeclaredMethod() but do this not as priveleged action.
java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessDeclaredMembers")
at java.base/java.security.AccessControlContext.checkPermission(Unknown Source)
at java.base/java.security.AccessController.checkPermission(Unknown Source)
at java.base/java.lang.SecurityManager.checkPermission(Unknown Source)
at jdk.javaws@10-ea/com.sun.javaws.security.JavaWebStartSecurity.checkPermission(Unknown Source)
at java.base/java.lang.Class.checkMemberAccess(Unknown Source)
at java.base/java.lang.Class.getDeclaredMethod(Unknown Source)
at java.base/java.util.zip.ZipFile$CleanableResource.get(Unknown Source)
at java.base/java.util.zip.ZipFile.<init>(Unknown Source)
at java.base/java.util.zip.ZipFile.<init>(Unknown Source)
at java.base/java.util.jar.JarFile.<init>(Unknown Source)
at jdk.deploy@10-ea/com.sun.deploy.cache.CachedJarFile.<init>(Unknown Source)
at jdk.deploy@10-ea/com.sun.deploy.cache.CachedJarFile.clone(Unknown Source)
at jdk.deploy@10-ea/com.sun.deploy.net.protocol.jar.DeployURLConnection$1.run(Unknown Source)
at jdk.deploy@10-ea/com.sun.deploy.net.protocol.jar.DeployURLConnection$1.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at jdk.deploy@10-ea/com.sun.deploy.net.protocol.jar.DeployURLConnection.getJarFile(Unknown Source)
....................................
...........................................................
REGRESSION. Last worked in version 9.0.4
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
No internal security exceptions
REPRODUCIBILITY :
This bug can be reproduced always.
- backported by
-
JDK-8197862 Java Web Start fails to launch i-net Designer app with AccessControlException ("accessDeclaredMembers")
- Resolved
-
JDK-8197895 Java Web Start fails to launch i-net Designer app with AccessControlException ("accessDeclaredMembers")
- Resolved
-
JDK-8200847 Java Web Start fails to launch i-net Designer app with AccessControlException ("accessDeclaredMembers")
- Resolved
-
JDK-8201940 Java Web Start fails to launch i-net Designer app with AccessControlException ("accessDeclaredMembers")
- Resolved
- duplicates
-
JDK-8197481 AccessControlException while opening jar file within a WebStart application
- Closed
- relates to
-
JDK-8197481 AccessControlException while opening jar file within a WebStart application
- Closed