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

throw SSLHandshakeException instead of SSLException

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • None
    • 7.4.0.GA.CR1
    • mod_cluster
    • None
    • False
    • False
    • Undefined
    • Hide

      In test are prepared 4 worker with load balancer and ssl is setup. Then client must be authenticated when is accessing to deployment. In negative case when client is not authenticated application throw SSLException with message readHandshakeRecord. The SSLException is to much general. Application should throw its child SSLHandshakeException

      Show
      In test are prepared 4 worker with load balancer and ssl is setup. Then client must be authenticated when is accessing to deployment. In negative case when client is not authenticated application throw SSLException with message readHandshakeRecord . The SSLException is to much general. Application should throw its child SSLHandshakeException

    Description

      This test is covering access to deployment which require authentication. Part when client is authenticated work fine. In second part of test is tested fail case when the client is not authenticated and try access to deployment. So it should not allow access to client and it throw exception. But the exception should not be general like SSLException. It should be its child SSLHandshakeException

      2021-06-10 09:32:24.656 ERROR noe.common.utils.VerifyURLBuilder: verifyUrl() - problem with handling response text, exception detected
      javax.net.ssl.SSLException: readHandshakeRecord
              at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1335)
              at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:440)
              at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:411)
              at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:436)
              at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:384)
              at com.gargoylesoftware.htmlunit.httpclient.HtmlUnitSSLConnectionSocketFactory.connectSocket(HtmlUnitSSLConnectionSocketFactory.java:184)
              at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
              at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376)
              at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)
              at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
              at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
              at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
              at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
              at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
              at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
              at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:193)
              at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1537)
              at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1456)
              at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:447)
              at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:368)
              at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:520)
              at com.gargoylesoftware.htmlunit.WebClient$getPage$0.call(Unknown Source)
              at noe.common.utils.VerifyURLBuilder.build(VerifyURLBuilder.groovy:291)
      

      Attachments

        Activity

          People

            ssur@redhat.com Sudeshna Sur
            rhn-support-kstekovi Krystof Stekovic
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: