flysystem
flysystem copied to clipboard
[FTP adapter] LIST command not compatible with latest FileZilla server
Bug Report
Providing options with the FTP LIST
command (e.g. LIST -aln /
) is not supported any more by the FileZilla server.
I'm not sure if the new behavior is violating any RFCs or if allowing options is actually a non Standard behavior.
My suggestion would be to add an option that disables the usage of LIST options (which seems to fix the issue).
Q | A |
---|---|
BC Break | no |
Version | 2.3.2 |
Summary
Version 1.1.0 of the FileZilla server does not allow arguments in the LIST
command any more.
This command works:
LIST /
This fails with 450 - Couldn't open the file
LIST -aln /
How to reproduce
Try listing files with the latest FileZilla server as remote:
// This will always return an empty list with a FileZilla server
// even if there are files / directories in the root directory.
FilesystemOperator::listContents('')
This is the log output of the FileZilla server:
Hint
It took me a while to figure out the problem because I got a totally unrelated error.
The listContents()
call does not throw an Exception, it simply returns an empty list.
But when you upload a file after listing the contents (in the same request) you get an error:
Warning: ftp_fput(): Unable to build data connection: ECONNABORTED - Connection aborted
I hope this helps when someone has a similar issue.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
We also run into this problem with FileZilla Server v1.3.0
I also got an empty array for a few FTP servers but works fine on others.
After some debugging found that removing -aln
from the ftp_rawlist in the package works.
Checking this issues page earlier would have saved some hours of debugging. 😅
@Xinecraft what type of FTP server is that?
Seems like Multicraft 2.3.5 FTP Server
. It's a Minecraft server management panel lot of hosting companies use. Don't know what running use under the hood. It get installed in both Windows and Linux
@Xinecraft what type of FTP server is that?
I can confirm this. Would be good if this issue can be resolved.
Please upgrade to 3.4.0 or above to resolve this issue.