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

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

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

Thorsten Schöning updated HTTPCORE-425:
---------------------------------------
    Attachment: TestSSLContextBuilder.java.patch

This patch is against 4.4.5 and ports the same from trunk:

Revision: 1698009
Autor: ggregory
Datum: Mittwoch, 26. August 2015 23:39:05
Meldung:
Make this test different on Windows vs. other OSs.
----
Verändert : /httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/ssl/TestSSLContextBuilder.java



> 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
>         Attachments: 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