hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: SSL test cases; was Re: [VOTE] Release HttpComponents Core 4.4 based on RC1
Date Mon, 15 Dec 2014 14:49:50 GMT
On Mon, 2014-12-15 at 14:40 +0000, ant elder wrote:
> Its on Windows 7, i've just tried with Java 1.6, 1.7 and 1.8 and get the
> same fail with all those, so a WIndows thing?
> 

It appears so. I am also seeing the test causing SocketException instead
of expected SSLHandshakeException on Windows 7. I'll fix the problem in
4.4.x and trunk, but do not consider it a release stopper.

Cheers

Oleg

>    ...ant
> 
> On Mon, Dec 15, 2014 at 2:26 PM, Oleg Kalnichevski <olegk@apache.org> wrote:
> >
> > On Mon, 2014-12-15 at 14:07 +0000, ant elder wrote:
> > > This looks ok to me so i'd +1 it but i do get one test failure when
> > > building the source, i've not debuged it so it may just be my
> > environment:
> > >
> >
> > Thank you, Anthony! I added a number of test cases that effectively test
> > SSL functionality of the underlying JRE rather that of HC. The failing
> > test case is one of those. Java SSL code has historically been finicky
> > and often performs differently between major Java releases.  What is
> > your OS / JRE version?
> >
> > Cheers
> >
> > Oleg
> >
> > >
> > -------------------------------------------------------------------------------
> > > Test set: org.apache.http.ssl.TestSSLContextBuilder
> > >
> > -------------------------------------------------------------------------------
> > > Tests run: 13, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.45 sec
> > > <<< FAILURE! - in org.apache.http.ssl.TestSSLContextBuilder
> > >
> > testSSLHanskshakeClientUnauthenticatedError(org.apache.http.ssl.TestSSLContextBuilder)
> > > Time elapsed: 0.048 sec  <<< ERROR!
> > > 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.read(SocketInputStream.java:129)
> > >     at
> > > com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputRecord.java:293)
> > >     at
> > com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:331)
> > >     at
> > >
> > com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:798)
> > >     at
> > >
> > com.sun.net.ssl.internal.ssl.SSLSocketImpl.waitForClose(SSLSocketImpl.java:1493)
> > >     at
> > >
> > com.sun.net.ssl.internal.ssl.HandshakeOutStream.flush(HandshakeOutStream.java:103)
> > >     at
> > >
> > com.sun.net.ssl.internal.ssl.Handshaker.sendChangeCipherSpec(Handshaker.java:689)
> > >     at
> > >
> > com.sun.net.ssl.internal.ssl.ClientHandshaker.sendChangeCipherAndFinish(ClientHandshaker.java:985)
> > >     at
> > >
> > com.sun.net.ssl.internal.ssl.ClientHandshaker.serverHelloDone(ClientHandshaker.java:904)
> > >     at
> > >
> > com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:238)
> > >     at
> > > com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:593)
> > >     at
> > >
> > com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:529)
> > >     at
> > >
> > com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:893)
> > >     at
> > >
> > com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1138)
> > >     at
> > >
> > com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1165)
> > >     at
> > >
> > com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1149)
> > >     at
> > >
> > org.apache.http.ssl.TestSSLContextBuilder.testSSLHanskshakeClientUnauthenticatedError(TestSSLContextBuilder.java:385)
> > >
> > >    ...ant
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> > For additional commands, e-mail: dev-help@hc.apache.org
> >
> >



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


Mime
View raw message