asbachb / ftp4j

ftp4j is a java implementation of the ftp, ftps and ftpes protocol provided as maven artifact
GNU Lesser General Public License v2.1
58 stars 20 forks source link

ftp4j 425 error #9

Open imyyq-star opened 2 years ago

imyyq-star commented 2 years ago

Hi, when I upload a file using ftp4j 1.7.3, I get an error like "code=425, message= Unable to build data connection: TLS session of data connection not resumed". As long as my FileZilla Server doesn't check "Require TLC session resumption on data connection", I don't have this error. How to solve this problem?

Here is what I found:

https://forum.filezilla-project.org/viewtopic.php?t=36903 https://forum.filezilla-project.org/viewtopic.php?p=178773 https://stackoverflow.com/questions/47227095/ftp4j-fails-to-use-ftpes-tls-session-of-data-connection-has-not-resumed-or-the

asbachb commented 2 years ago

I don't think it's easy to propose a patch as that behaviour seems to be not supported by java TLS handling.

Some more references:

https://stackoverflow.com/questions/70903926/how-to-establish-a-ftps-data-connection-to-a-filezilla-server-1-2-0

https://issues.apache.org/jira/browse/NET-408

asbachb commented 1 year ago

@imyyq-star Can you double check if this problem still exists with Java 17?

imyyq-star commented 1 year ago

@asbachb Sorry, I use ftp4j on Android, so the Java version is only up to Java 8.