FTPException uploading empty file using FTPES and FTPIS
Brought to you by:
cpelliccia
Version
ftp4j-1.7.2.jar
Description
The following FTPException is thrown uploading an empty (zero byte) file using FTP Explicit (FTPClient.SECURITY_FTPES) and FTP Implicit (FTPClient.SECURITY_FTPIS). Please note that the same succeeds using FTPClient.SECURITY_FTP. Also, non empty file uploads succeed.
Stacktrace
Exception in thread "main" it.sauronsoftware.ftp4j.FTPException [code=425, message= Can't open data connection.]
at it.sauronsoftware.ftp4j.FTPClient.upload(FTPClient.java:2799)
at it.sauronsoftware.ftp4j.FTPClient.upload(FTPClient.java:2586)
at it.sauronsoftware.ftp4j.FTPClient.upload(FTPClient.java:2457)
It is probably due to the same ssl reuse problem : https://sourceforge.net/p/ftp4j/changes/2/