-
Bug
-
Resolution: Won't Fix
-
P3
-
None
-
None
-
x86
-
generic
Some regression tests deploying a custom policy fail with JDK8 and mac port if running with jtreg.
For instance, closed/java/awt/PrintJob/Security/SecurityDialogTest.java tries to check if it is possible to print to a file with certain minimal set of permissions. It is started with a separate JVM and does use a policy file and fails with the following exception on Linux, in JDK 8. On Mac with macport, the exception is different.
Note that test works OK with jdk 7 fcs and older 6 releases etc. It also work correctly in jdk8 without jtreg with java.security.policy set.
java.security.AccessControlException: access denied ("java.util.PropertyPermission" "sun.java2d.xrgradcache" "read")
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:364)
at java.security.AccessController.checkPermission(AccessController.java:555)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1302)
at java.lang.System.getProperty(System.java:707)
at sun.java2d.xr.XRCompositeManager.<init>(XRCompositeManager.java:86)
The root cause of a problem may be in recent security changes in AccessController in jdk which should be someway accomodated in jtreg.
For instance, closed/java/awt/PrintJob/Security/SecurityDialogTest.java tries to check if it is possible to print to a file with certain minimal set of permissions. It is started with a separate JVM and does use a policy file and fails with the following exception on Linux, in JDK 8. On Mac with macport, the exception is different.
Note that test works OK with jdk 7 fcs and older 6 releases etc. It also work correctly in jdk8 without jtreg with java.security.policy set.
java.security.AccessControlException: access denied ("java.util.PropertyPermission" "sun.java2d.xrgradcache" "read")
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:364)
at java.security.AccessController.checkPermission(AccessController.java:555)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1302)
at java.lang.System.getProperty(System.java:707)
at sun.java2d.xr.XRCompositeManager.<init>(XRCompositeManager.java:86)
The root cause of a problem may be in recent security changes in AccessController in jdk which should be someway accomodated in jtreg.
- relates to
-
JDK-7112423 [macosx] Certain regression tests fail in jtreg if a security policy provided
-
- Open
-