RonnyRen opened a new issue, #4866: URL: https://github.com/apache/hop/issues/4866
### Apache Hop version? 2.11 ### Java version? 17 ### Operating system Windows ### What happened? I migrated Pentaho jobs to Hop workflow and found that it behaves differently. Case 1: Input invalid user name and password Pentaho: Error getting files from FTP : User cannot log in. Hop: No error happened and no file was downloaded. Dialog "Connection OK" shows when clicking button "Test Connection". Case 2: Input correct user name and password, but input a remote directory that doesn't exist Pentaho: Error getting files from FTP : The system cannot find the file specified. Hop: No error happened, it seems that it checks root directory if remote directory doesn't exist based on detailed logs and it downloaded matched files in the root directory. Is it by design or bug? I checked source code, it uses different library as Kettle Pentaho, first bug should be related to code as below, it doesn't check if login returns true or false. https://github.com/apache/hop/blob/main/plugins/actions/ftp/src/main/java/org/apache/hop/workflow/actions/util/FtpClientUtil.java#L178  Note: The login method in library EnterpriseDT.Net.Ftp used by Pentaho is void. The second bug should be also related to different libraries used. Pentaho uses ftpclient.dirDetails( null ) and Hop uses ftpClient.listFiles(). ### Issue Priority Priority: 3 ### Issue Component Component: Workflows -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
