Uploaded image for project: 'Commons Net'
  1. Commons Net
  2. NET-718

"Unsupported or unrecognized SSL message" for FTPS via proxy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.9.0
    • None
    • None
    • None

    Description

      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) 

       

       

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sebalf-lb Sebastian Alfers
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: