Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
+1 vote
205 views
in Java FTP by (280 points)
edited by

The file to be read has a user group name with space.

-rwxrwxrwx  1 user1 domain users    67 Jul  8 12:13 Source.sh

If this Source.sh is to be read using FTPClient.get(), the following exception

DEBUG 28.05.19 11:47:53,519 FTPControlSocket          550 Jul  8 12:13 Source.sh: No such file or directory

 INFO 28.05.19 11:47:53,519 FTPControlSocket          Expected reply codes = [125,150]

ERROR 28.05.19 11:47:53,519 FTPClient                 Caught and rethrowing exception in initGet()

com.enterprisedt.net.ftp.FTPException: 550 Jul  8 12:13 Source.sh: No such file or directory

at com.enterprisedt.net.ftp.FTPControlSocket.validateReply(FTPControlSocket.java:1330)

at com.enterprisedt.net.ftp.FTPClient.initGet(FTPClient.java:3262)

at com.enterprisedt.net.ftp.FTPClient.a(FTPClient.java:3364)

at com.enterprisedt.net.ftp.FTPClient.get(FTPClient.java:3524)

Product - edtftpj-pro (Licensed)

Version - 5.3.2 

1 Answer

0 votes
by (161k points)

This happens because the directory listing has to be parsed, and it’s unusual to have a group with spaces in it. If you have control over the group name, change it to domain_users and that should resolve the issue. Upgrading to 7.2.0 might help if you can’t. 

by (280 points)
Upgrading to 7.2.0 didn't help as we got feedback from our customer. If it possible to provide a fix for this issue in future release ? Please let us know.

Categories

...