Opened 14 years ago

Closed 14 years ago

#5319 closed Bug report (rejected)

Filezilla fails to CWD into a directory with trailing spaces

Reported by: larsen255 Owned by:
Priority: normal Component: FileZilla Client
Keywords: Cc:
Component version: Operating system type: Windows
Operating system version: XP SP3



a co-worker has uploaded a directory "Button " and Filezilla fails to CWD into that dir:

Command: PASV
Response: 227 Entering Passive Mode (xx,xxx,xxx,xx,xxx,xx).
Command: LIST
Response: 150 Opening ASCII mode data connection for file list
Listing: drwxr-xr-x 2 ftp_xchange xxxxxx 4096 Apr 13 10:57 Button
Response: 226-Transfer complete
Response: 226 Quotas off
Status: Directory listing successful
Status: Retrieving directory listing...
Command: CWD Button
Response: 550 Button: No such file or directory
Error: Failed to retrieve directory listing

I don´t know if that´s a FileZilla problem or perhaps is not supposed to work via FTP at all. And yes, having a directory with trailing spaces is retarded ;-)


Change History (1)

comment:1 by Tim Kosse, 14 years ago

Resolution: rejected
Status: newclosed

This is a known limitation of the LIST command. The format of the listings it returns is not standardized. In particular, it is not possible to distinguish leading or trailing whitespace characters from padding characters.

You have to upgrade to a more modern server that supports the MLSD command which returns listings in a well-defined format that doesn't suffer from this issue.

Note: See TracTickets for help on using tickets.