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

EJB client fails to authenticate with keystore against remoting connector using PicketBox in EAP7.1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 7.1.0.DR18
    • 7.1.0.DR16, 7.1.0.DR17
    • EJB, Remoting, Security
    • None
    • Regression
    • Hide

      Follow the instructions in README.md in the attached reproducer.

      Show
      Follow the instructions in README.md in the attached reproducer.

      When an EJB client connecting to remoting connector backed by PicketBox realm with truststore used for authentication tries to connect and authenticate using its keystore, this exception is produced in EAP 7.1.0.DR17:

      Exception in thread "main" org.jboss.ejb.client.RequestSendFailedException: javax.security.sasl.SaslException: Authentication failed: the server presented no authentication mechanisms
      	at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:359)
      	at org.jboss.ejb.client.TransactionInterceptor.handleInvocationResult(TransactionInterceptor.java:73)
      	at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:362)
      	at org.jboss.ejb.client.EJBClientInvocationContext.awaitResponse(EJBClientInvocationContext.java:629)
      	at org.jboss.ejb.client.EJBInvocationHandler.lambda$invoke$0(EJBInvocationHandler.java:180)
      	at org.jboss.ejb.client.EJBClientContext.performLocatedAction(EJBClientContext.java:707)
      	at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:162)
      	at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:112)
      	at com.sun.proxy.$Proxy2.hello(Unknown Source)
      	at client.Client.main(Client.java:16)
      Caused by: javax.security.sasl.SaslException: Authentication failed: the server presented no authentication mechanisms
      	at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:397)
      	at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:246)
      	at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
      	at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
      	at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:89)
      	at org.xnio.nio.WorkerThread.run(WorkerThread.java:567)
      	at ...asynchronous invocation...(Unknown Source)
      	at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:537)
      	at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:503)
      	at org.jboss.remoting3.ConnectionInfo$None.getConnection(ConnectionInfo.java:84)
      	at org.jboss.remoting3.ConnectionInfo.getConnection(ConnectionInfo.java:57)
      	at org.jboss.remoting3.EndpointImpl.doGetConnection(EndpointImpl.java:458)
      	at org.jboss.remoting3.EndpointImpl.getConnectedIdentity(EndpointImpl.java:403)
      	at org.jboss.remoting3.UncloseableEndpoint.getConnectedIdentity(UncloseableEndpoint.java:55)
      	at org.jboss.ejb.protocol.remote.RemoteEJBReceiver.lambda$getConnection$1(RemoteEJBReceiver.java:179)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at org.jboss.ejb.protocol.remote.RemoteEJBReceiver.getConnection(RemoteEJBReceiver.java:179)
      	at org.jboss.ejb.protocol.remote.RemoteEJBReceiver.processInvocation(RemoteEJBReceiver.java:123)
      	at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:314)
      	at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:68)
      	at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:317)
      	at org.jboss.ejb.client.EJBInvocationHandler.lambda$invoke$0(EJBInvocationHandler.java:176)
      

      This does not occur with EAP 7.0 - authentication goes through successfully and so does the invocation, therefore I am marking this as regression.

            dlloyd@redhat.com David Lloyd
            mjurc@redhat.com Michal Jurc
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: