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

IIOPSecurityInvocationTestCase fails with security manager

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 7.1.0.ER3
    • 7.1.0.ER1
    • IIOP, Test Suite
    • None
    • Hide

      cd wildfly/testsuite/integration/iiop
      mvn clean test -Dtest=IIOPSecurityInvocationTestCase -Dsecurity.manager

      Show
      cd wildfly/testsuite/integration/iiop mvn clean test -Dtest=IIOPSecurityInvocationTestCase -Dsecurity.manager

      IIOPSecurityInvocationTestCase tests fail with security manager:

      java.security.AccessControlException: WFSM000001: Permission check failed (permission "("org.wildfly.security.permission.ElytronPermission" "getSecurityDomain")" in code source "(vfs:/content/client.jar <no signer certificates>)" of "ModuleClassLoader for Module "deployment.client.jar" from Service Module Loader")
      	at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:278)
      	at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:175)
      	at org.wildfly.security.auth.server.SecurityDomain.getCurrent(SecurityDomain.java:155)
      	at org.jboss.as.test.shared.integration.ejb.security.Util.switchIdentity(Util.java:238)
      	at org.jboss.as.test.shared.integration.ejb.security.Util.switchIdentity(Util.java:206)
      	at org.jboss.as.test.shared.integration.ejb.security.Util.switchIdentity(Util.java:156)
      	at org.jboss.as.test.iiop.security.IIOPSecurityInvocationTestCase.testSuccessfulInvocation(IIOPSecurityInvocationTestCase.java:103)
      ...
      

      After adding missing permission "("org.wildfly.security.permission.ElytronPermission" "getSecurityDomain")" tests fail with:

      javax.ejb.EJBException: org.omg.CORBA.UNKNOWN:   vmcid: 0x0  minor code: 0 completed: Maybe
      	at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:188)
      	at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:277)
      	at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:332)
      	at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:240)
      	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
      	at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)
      ...
      

              tadamski@redhat.com Tomasz Adamski
              okotek@redhat.com Ondrej Kotek
              Hynek Švábek Hynek Švábek (Inactive)
              Hynek Švábek Hynek Švábek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: