Sebastian Alfers created NET-718:
------------------------------------

             Summary: "Unsupported or unrecognized SSL message" for FTPS via 
proxy
                 Key: NET-718
                 URL: https://issues.apache.org/jira/browse/NET-718
             Project: Commons Net
          Issue Type: Bug
    Affects Versions: 3.9.0
            Reporter: Sebastian Alfers


After bumping from commons-net 3.8 to 3.9, we started to see this error.

I happens only when using FTPS via a proxy, and it is likely that this change 
may have introduced. 

 


Any recommendation how to bring back the pre-3.9 behavior? This is the full 
stacktrace:

 


Start of log messages of test that failed with assertion failed: 
fishForMessage(OnNext(_) or OnComplete) found unexpected message 
OnError(javax.net.ssl.SSLException: Unsupported or unrecognized SSL message
    at 
java.base/sun.security.ssl.SSLSocketInputRecord.handleUnknownRecord(SSLSocketInputRecord.java:451)
    at 
java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:175)
    at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:111)
    at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1505)
    at 
java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1420)
    at 
java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:455)
    at 
java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:426)
    at 
org.apache.commons.net.ftp.FTPSClient._openDataConnection_(FTPSClient.java:278)
    at 
org.apache.commons.net.ftp.FTPClient._retrieveFileStream(FTPClient.java:915)
    at 
org.apache.commons.net.ftp.FTPClient.retrieveFileStream(FTPClient.java:2841)
    at 
akka.stream.alpakka.ftp.impl.CommonFtpOperations.$anonfun$retrieveFileInputStream$1(CommonFtpOperations.scala:71)
    at scala.util.Try$.apply(Try.scala:210)``` 

 

 

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to