Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-6480

JNDIBindingMBeanTestCase misses JndiPermission when run with security manager

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 11.0.0.Alpha1
    • None
    • None
    • None

      JNDIBindingMBeanTestCase

      ./integration-tests.sh -DtestLogToFile=false -Dts.noSmoke -Dts.basic -Dtest=org.jboss.as.test.integration.sar.JNDIBindingMBeanTestCase -Dsecurity.manager

      Fails with:

      Caused by: java.security.AccessControlException: WFSM000001: Permission check failed (permission "("org.wildfly.naming.java.permission.JndiPermission" "global/env/foo/legacy2" "bind")" in code source "(vfs:/content/multiple-jndi-binding-mbeans.sar <no signer certificates>)" of "null")
      	at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:273)
      	at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:175)
      	at org.jboss.as.naming.NamingContext.check(NamingContext.java:591)
      	at org.jboss.as.naming.NamingContext.bind(NamingContext.java:251)
      	at org.jboss.as.naming.InitialContext$DefaultInitialContext.bind(InitialContext.java:264)
      	at org.jboss.as.naming.NamingContext.bind(NamingContext.java:289)
      	at javax.naming.InitialContext.bind(InitialContext.java:425)
      	at javax.naming.InitialContext.bind(InitialContext.java:425)
      	at org.jboss.as.test.integration.sar.JNDIBindingService.start(JNDIBindingService.java:53)
      	... 12 more
      

              istudens@redhat.com Ivo Studensky
              jtymel Jan Tymel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: