Hey Stas

Sorry for the late reply :-/

Stas Ostapenko wrote:
LIST -la /file.txt

150 File status okay; about to open data connection.

501 Syntax error in parameters or arguments.

226 Closing data connection.

We do not currently support the "LIST -la" syntax for this command. Anyone know where this is specified? The LIST command in RFC 959 is specified as:
LIST [<SP> <pathname>] <CRLF>

I'm guessing this is just a de facto convention that FTP clients has started using to figure out a solution to the problem of showing hidden files.

Also, for servers that allow for the -la option, how would they recognize that from someone trying to list the file (somewhat oddly) named "-la foo"?

If we were to implement this support, should we make if configurable and default to disabled due to the security issue of showing hidden files? Other servers seem to do this as well.


SIZE /file.txt

550 /file.txt: No such file or directory.

This makes me more curious. The SIZE command is implemented and I just added unit tests that does work as expected [1]. Could you please try to verify this bug with the latest code (from SVN) and if you still get the error write up an description on how to reproduce it?

[1] https://svn.apache.org/repos/asf/incubator/ftpserver/trunk/core/src/test/org/apache/ftpserver/clienttests/SizeTest.java

/niklas

Reply via email to