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

JNDIBindingMBeanTestCase misses JndiPermission when run with security manager

    Details

    • Type: Bug
    • Status: Verified (View Workflow)
    • Priority: Optional
    • Resolution: Done
    • Affects Version/s: 7.0.0.ER7, 7.1.0.DR1
    • Fix Version/s: 7.1.0.DR4
    • Component/s: Test Suite
    • Labels:
      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
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  istudens Ivo Studensky
                  Reporter:
                  jtymel Jan Tymel
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: