LIST works but LIST -a causes 550

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
gowner
500 Command not understood
Posts: 1
Joined: 2023-12-14 23:43

LIST works but LIST -a causes 550

#1 Post by gowner » 2023-12-14 23:48

Hi folks,
on my FileZilla Server, when I send a LIST command, everything works fine, I see all files. But when I send LIST -a, I get a 550 error. The server is running on the system account and that account has full control permissions on the local folder. The user I am using has full read, write permissions as well. Can anyone help with this? Log entries are below:

<Date/Time> Info [Type] Message
<12/15/2023 12:20:11 AM> FTP Session 13 192.168.178.24 gowner [Command] LIST -a
<12/15/2023 12:20:11 AM> FTP Session 13 192.168.178.24 gowner [Response] 550 Couldn't open the file or directory
<12/15/2023 12:21:50 AM> FTP Session 8 192.168.178.24 gowner [Command] LIST
<12/15/2023 12:21:50 AM> FTP Session 8 192.168.178.24 gowner [Response] 150 About to start data transfer.
<12/15/2023 12:21:50 AM> FTP Session 8 192.168.178.24 gowner [Response] 226 Operation successful

User avatar
boco
Contributor
Posts: 26940
Joined: 2006-05-01 03:28
Location: Germany

Re: LIST works but LIST -a causes 550

#2 Post by boco » 2023-12-15 06:22

LIST -a means "list a directory or file with the name -a". As there is no such item, the error message is displayed. Working as intended.

Parameters to LIST are not supported by FileZilla Server. They violate the FTP specs and should have never existed.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

TechyUser46
500 Command not understood
Posts: 2
Joined: 2024-01-31 20:43

Re: LIST works but LIST -a causes 550

#3 Post by TechyUser46 » 2024-01-31 21:12

Parameters to LIST are not supported by FileZilla Server. They violate the FTP specs ...
Just to clarify, the FTP spec (RFC 959) certainly allows parameters for the LIST and NLST commands ("pathname", specified "directory", specified "file", or "system-specific file group descriptor"). See https://www.rfc-editor.org/rfc/rfc959.html

Code: Select all

LIST (LIST)
This command causes a list to be sent from the server to the
passive DTP.  If the pathname specifies a directory or other
group of files, the server should transfer a list of files
in the specified directory.  If the pathname specifies a
file then the server should send current information on the
file. ...

NAME LIST (NLST)
This command causes a directory listing to be sent from
server to user site.  The pathname should specify a
directory or other system-specific file group descriptor; ...

User avatar
boco
Contributor
Posts: 26940
Joined: 2006-05-01 03:28
Location: Germany

Re: LIST works but LIST -a causes 550

#4 Post by boco » 2024-01-31 23:20

By "parameters", I referred to the illegal parameters, like -a. A pathname is of course allowed, as the only one.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

bobfitz
500 Command not understood
Posts: 3
Joined: 2024-02-07 19:22
First name: Robert
Last name: Fitzgerald

Re: LIST works but LIST -a causes 550

#5 Post by bobfitz » 2024-02-07 19:28

Is there any kind of workaround for this? I have no control over the FTP client that is using the LIST -a command. I can't force it to drop the argument since the command is automated. Also, this was not a problem until I upgraded from FileZilla Server 0.96. Appreciate any help.

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: LIST works but LIST -a causes 550

#6 Post by botg » 2024-02-07 19:40

There are numerous issues with LIST. MLSD has been introduced in March 2007 as a replacement to address these issues. Are you saying that the client in use hasn't been updated in almost 17 years? That doesn't seem wise from a security perspective.

bobfitz
500 Command not understood
Posts: 3
Joined: 2024-02-07 19:22
First name: Robert
Last name: Fitzgerald

Re: LIST works but LIST -a causes 550

#7 Post by bobfitz » 2024-02-08 19:31

Unfortunately, yes. The devices sending the LIST -a command are built into a system board using a custom designed FTP client. I am at the mercy of the developer to make changes. I've since had to revert to using the old version 0.96 FileZilla server. Without that I'm unable to see the files on the server. Do you happen to know why LIST -a works in the old version, but not the new one?

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: LIST works but LIST -a causes 550

#8 Post by botg » 2024-02-08 21:41

It's one of my biggest regrets. I unfortunately didn't know better back in the days. If I could turn back time, I would make sure to never have implemented the old server that broken way.

bobfitz
500 Command not understood
Posts: 3
Joined: 2024-02-07 19:22
First name: Robert
Last name: Fitzgerald

Re: LIST works but LIST -a causes 550

#9 Post by bobfitz » 2024-02-08 23:40

Well, I still appreciate the fact that the old version still functions. Thanks for making it available.

Post Reply