Uploaded image for project: 'WildFly EJB HTTP Client'
  1. WildFly EJB HTTP Client
  2. WEJBHTTP-18

HttpEJBReceiver fails under a security manager

XMLWordPrintable

    • Hide
      cd testsuite/integration/legacy-ejb-client
      mvn install -Dtest=EJBClientInterceptorTestCase -Dsecurity.manager
      
      Show
      cd testsuite/integration/legacy-ejb-client mvn install -Dtest=EJBClientInterceptorTestCase -Dsecurity.manager

      The RemoteTransactionContext.getInstance() method must be called from within a privileged block.

      The stack trace looks like this:

      java.security.AccessControlException: WFSM000001: Permission check failed (permission "("org.wildfly.common.context.ContextPermission" "org.wildfly.transaction.client.context.remote" "get")" in code source "(vfs:/content/ejb-client-interceptor-test-module.jar <no signer certificates>)" of "ModuleClassLoader for Module "deployment.ejb-client-interceptor-test-module.jar" from Service Module Loader")
          at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:295)
          at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:192)
          at org.wildfly.common.context.ContextManager.get(ContextManager.java:241)
          at org.wildfly.transaction.client.RemoteTransactionContext.getInstance(RemoteTransactionContext.java:167)
          at org.wildfly.httpclient.ejb.HttpEJBReceiver.<init>(HttpEJBReceiver.java:101)
          at org.wildfly.httpclient.ejb.HttpClientProvider.notifyRegistered(HttpClientProvider.java:44)
          at org.jboss.ejb.client.EJBClientContext.<init>(EJBClientContext.java:275)
          at org.jboss.ejb.client.EJBClientContext$Builder.build(EJBClientContext.java:788)
          at org.jboss.ejb.client.EJBClientContext.withAddedInterceptors(EJBClientContext.java:503)
          ... 65 more
      

            sdouglas1@redhat.com Stuart Douglas
            dlloyd@redhat.com David Lloyd
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: