Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-4238

Security manager tests aren't able to to set security policy on Windows

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Security manager tests fail as they aren't able to to set security policy on Windows. Tests fail with

      java.security.AccessControlException: access denied ("java.security.SecurityPermission" "setPolicy")
      	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:372)
      	at java.security.AccessController.checkPermission(AccessController.java:559)
      	at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
      	at java.security.Policy.setPolicy(Policy.java:279)
      	at org.infinispan.security.SecurityManagerCacheAuthorizationTest.testAllCombinations(SecurityManagerCacheAuthorizationTest.java:18)
      

      Example of test failure in Jenkins (W2k8 and Oracle JDK 7) is here.

      Same test pass fine on linux. I didn't find any difference in JDK policy setup on linux and windows and in general, all JDK setup should be same on both platforms.

              ttarrant@redhat.com Tristan Tarrant
              vjuranek@redhat.com Vojtech Juranek
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: