You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2016/06/23 20:24:16 UTC

[jira] [Resolved] (HTTPCORE-425) TestSSLContextBuilder.testSSLHanskshakeProtocolMismatch2 fails on Windows

     [ https://issues.apache.org/jira/browse/HTTPCORE-425?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Gregory resolved HTTPCORE-425.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 4.4.6

Fixed in branch for 4.4.x. Please verify and close.

> TestSSLContextBuilder.testSSLHanskshakeProtocolMismatch2 fails on Windows
> -------------------------------------------------------------------------
>
>                 Key: HTTPCORE-425
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-425
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>          Components: HttpCore
>    Affects Versions: 4.4.5
>         Environment: Windows 8.1 x64 Prof
>            Reporter: Thorsten Schöning
>             Fix For: 4.4.6
>
>         Attachments: TestSSLContextBuilder.java localhost.patch, TestSSLContextBuilder.java.patch
>
>
> {CODE}
> java.lang.Exception: Unexpected exception, expected<javax.net.ssl.SSLHandshakeException> but was<java.net.SocketException>
>         at java.net.SocketInputStream.socketRead0(Native Method)
>         at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
>         at java.net.SocketInputStream.read(SocketInputStream.java:170)
>         at java.net.SocketInputStream.read(SocketInputStream.java:141)
>         at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
>         at sun.security.ssl.InputRecord.read(InputRecord.java:503)
>         at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)
>         at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
>         at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
>         at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
>         at org.apache.http.ssl.TestSSLContextBuilder.testSSLHanskshakeProtocolMismatch2(TestSSLContextBuilder.java:603)
> {CODE}
> As mentioned on the mailing list, there's a fix for this available on trunk. Would you please consider backporting this to other branches? Thanks!
> Don't know if this is related or not, but the following line would better use "localhost" in my opinion:
> > serverSocket.bind(new InetSocketAddress(0));
> Simply for security reasons, no  other access is made later, only a connection from localhost to localhost.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org