directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DIRAPI-180) statTls does not work correctly in the client
Date Sun, 16 Mar 2014 08:37:42 GMT

    [ https://issues.apache.org/jira/browse/DIRAPI-180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13937035#comment-13937035
] 

Emmanuel Lecharny commented on DIRAPI-180:
------------------------------------------

Here is a test to demonstrate the issue :



    @Test
    public void testUseStartTLS() throws Exception
    {
        LdapNetworkConnection connection = new LdapNetworkConnection( tlsConfig );
        tlsConfig.setUseSsl( false );
        tlsConfig.setLdapPort( ldapServer.getPortSSL() );
        connection.connect();
        connection.startTls();
    }

in ldap-client-test project, class LdapSSLConnectionTest

> statTls does not work correctly in the client
> ---------------------------------------------
>
>                 Key: DIRAPI-180
>                 URL: https://issues.apache.org/jira/browse/DIRAPI-180
>             Project: Directory Client API
>          Issue Type: Bug
>    Affects Versions: 1.0.0-M21
>            Reporter: Emmanuel Lecharny
>             Fix For: 1.0.0-M22
>
>
> When we try to send the startTLS extended request, we get this error on the server :
> javax.net.ssl.SSLHandshakeException: SSL handshake failed.
> 	at org.apache.mina.filter.ssl.SslFilter.messageReceived(SslFilter.java:487)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:765)
> 	at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:109)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:410)
> 	at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:710)
> 	at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:664)
> 	at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:653)
> 	at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:67)
> 	at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1124)
> 	at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 	at java.lang.Thread.run(Thread.java:724)
> Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
> 	at sun.security.ssl.EngineInputRecord.bytesInCompletePacket(EngineInputRecord.java:171)
> 	at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:845)
> 	at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:758)
> 	at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624)
> 	at org.apache.mina.filter.ssl.SslHandler.unwrap(SslHandler.java:728)
> 	at org.apache.mina.filter.ssl.SslHandler.unwrapHandshake(SslHandler.java:666)
> 	at org.apache.mina.filter.ssl.SslHandler.handshake(SslHandler.java:552)
> 	at org.apache.mina.filter.ssl.SslHandler.messageReceived(SslHandler.java:351)
> 	at org.apache.mina.filter.ssl.SslFilter.messageReceived(SslFilter.java:468)
> 	... 15 more



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message