Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-7542

RESTClientWithSniEncryptionIT#testAuthorizedAccessThroughSni fails on all environments

    Details

      Description

      Test RESTClientWithSniEncryptionIT#testAuthorizedAccessThroughSni fails on all environments with the following error:

      java.lang.AssertionError: expected:<200> but was:<404>
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.failNotEquals(Assert.java:743)
      	at org.junit.Assert.assertEquals(Assert.java:118)
      	at org.junit.Assert.assertEquals(Assert.java:555)
      	at org.junit.Assert.assertEquals(Assert.java:542)
      	at org.infinispan.server.test.client.rest.RESTHelper.assertEquals(RESTHelper.java:378)
      	at org.infinispan.server.test.client.rest.RESTHelper.put(RESTHelper.java:229)
      	at org.infinispan.server.test.client.rest.RESTHelper.put(RESTHelper.java:206)
      	at org.infinispan.server.test.client.rest.RESTHelper.put(RESTHelper.java:202)
      	at org.infinispan.server.test.client.rest.RESTClientWithSniEncryptionIT.testAuthorizedAccessThroughSni(RESTClientWithSniEncryptionIT.java:85)
      

      The server log is:

      &amp#27;[0m14:24:06,579 INFO  [org.jboss.resteasy.plugins.server.netty.i18n] (nioEventLoopGroup-8-1) RESTEASY018512: Exception caught by handler: io.netty.handler.codec.DecoderException: javax.net.ssl.SSLException: Received fatal alert: certificate_unknown
      	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:442)
      	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248)
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)
      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:350)
      	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)
      	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)
      	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:129)
      	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:610)
      	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:551)
      	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:465)
      	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:437)
      	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:873)
      	at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: javax.net.ssl.SSLException: Received fatal alert: certificate_unknown
      	at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
      	at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1666)
      	at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1634)
      	at sun.security.ssl.SSLEngineImpl.recvAlert(SSLEngineImpl.java:1800)
      	at sun.security.ssl.SSLEngineImpl.readRecord(SSLEngineImpl.java:1083)
      	at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:907)
      	at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:781)
      	at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624)
      	at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1094)
      	at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:966)
      	at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:900)
      	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:411)
      	... 16 more
      

      The RESTClientWithSniEncryptionIT#testUnauthorizedAccessToDefaultSSLContext test also fails but randomly with the error:

      java.lang.RuntimeException: Could not retrieve HotRod host
      	at org.jboss.remoting3.remote.RemoteConnectionChannel.openOutboundMessage(RemoteConnectionChannel.java:115)
      	at org.jboss.remoting3.remote.RemoteConnectionChannel.writeMessage(RemoteConnectionChannel.java:307)
      	at org.jboss.remotingjmx.protocol.v2.Common.write(Common.java:180)
      	at org.jboss.remotingjmx.protocol.v2.ClientConnection$TheConnection.getAttribute(ClientConnection.java:823)
      	at org.infinispan.arquillian.utils.MBeanUtils.getMBeanAttribute(MBeanUtils.java:55)
      	at org.infinispan.arquillian.core.RESTEndpoint.getInetAddress(RESTEndpoint.java:60)
      	at org.infinispan.server.test.client.rest.RESTClientWithSniEncryptionIT.setup(RESTClientWithSniEncryptionIT.java:53)
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  sebastian.laskawiec Sebastian Łaskawiec
                  Reporter:
                  amanukyan Anna Manukyan
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: