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

Details

    • Bug
    • Status: Verified (View Workflow)
    • Optional
    • Resolution: Done
    • 7.0.0.ER7, 7.1.0.DR1
    • 7.1.0.DR4
    • Test Suite
    • None

    Description

      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
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: