Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.2.5 (EE only)
-
Fix Version/s: 2.2.7 (EE only), 3.0.1
-
Component/s: Transport: FTP / SFTP
-
Labels:None
-
User impact:Medium
-
Similar Issues:None
Description
The validateObject method relies on an exception to be thrown to determine validity. The noop command can return a negative result without an exception.
FtpConnectionFactory.java:64
public boolean validateObject(Object obj) { FTPClient client = (FTPClient) obj; try { client.sendNoOp(); return true; } catch (IOException e) { return false; } }
A possible fix would be to return the result of the noop command instead of returning true.