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

Sebastian Alfers commented on NET-718:
--------------------------------------

Hi [~ggregory] , thanks for your immediate response!

Please see this branch I made, containing a reproducer (unfortunately only 
reproducible with an integration test): 
https://github.com/apache/commons-net/compare/master...sebastian-alfers:commons-net:ftps-proxy-error

It is this contribution that introduced the problem: 
[https://github.com/apache/commons-net/pull/90]

 

As I point out in my reproducer-branch, this lines seem to cause the problem: 
https://github.com/apache/commons-net/blob/master/src/main/java/org/apache/commons/net/ftp/FTPSClient.java#L794-L796

> "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
>            Priority: Major
>
> 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:
> {code:java}
> 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) {code}
>  
>  
>  
>  



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

Reply via email to