Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-4071

JNDIBindingMBeanTestCase misses JndiPermission when run with security manager

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Optional Optional
    • 7.1.0.DR4
    • 7.0.0.ER7, 7.1.0.DR1
    • Test Suite
    • None

      org.jboss.as.test.integration.sar.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:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: