flysystem icon indicating copy to clipboard operation
flysystem copied to clipboard

[FTP adapter] LIST command not compatible with latest FileZilla server

Open astehlik opened this issue 2 years ago • 5 comments

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:

grafik

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.

astehlik avatar Dec 03 '21 15:12 astehlik

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.

stale[bot] avatar Mar 02 '22 11:03 stale[bot]

We also run into this problem with FileZilla Server v1.3.0

marvinschroeder avatar Apr 01 '22 10:04 marvinschroeder

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 avatar Jun 13 '22 07:06 Xinecraft

@Xinecraft what type of FTP server is that?

frankdejonge avatar Jun 13 '22 07:06 frankdejonge

image

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?

Xinecraft avatar Jun 13 '22 07:06 Xinecraft

I can confirm this. Would be good if this issue can be resolved.

LiaraAlis avatar Oct 04 '22 06:10 LiaraAlis

Please upgrade to 3.4.0 or above to resolve this issue.

frankdejonge avatar Oct 04 '22 06:10 frankdejonge