Opened 11 years ago
Closed 11 years ago
#8697 closed Bug report (wontfix)
Beginning and trailing spaces are trimmed from directory names on remote folders
Reported by: | Chris Johnsen | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | FileZilla Client |
Keywords: | directory traversal | Cc: | |
Component version: | Operating system type: | Windows | |
Operating system version: | Windows, OS X, Linux |
Description
If a directory name on a remote server begins or ends with a space, FileZilla appears to trim the space(s) and the user is unable to work with the directory (list contents, rename, etc.)
I have tested and was able to reproduce on Windows, OS X and CentOS 6.4.
To reproduce, create a folder with a name that starts with or ends with a space. Attempt to list the contents of this folder from FileZilla.
The log window reads:
Status: Retrieving directory listing...
Command: CWD /
Response: 250 Directory successfully changed.
Command: CWD Testing with Space
Response: 550 Failed to change directory.
Error: Failed to retrieve directory listing
Change History (3)
comment:1 by , 11 years ago
Status: | new → moreinfo |
---|
comment:3 by , 11 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
As written in the Wiki (https://wiki.filezilla-project.org/Limitations):
FileZilla ignores leading space of filename or directory
This happens on FTP servers not supporting the MLSD command. On those servers FileZilla falls back to LIST. Unfortunately the listing format returned by LIST is not standardised. It is impossible to distinguish leading spaces from padding. To solve this issue, simply upgrade to a modern server supporting the MLSD command or refrain from using leading spaces.
https://wiki.filezilla-project.org/Limitations
Do you use LIST or MLSD? If you do not know, please provide logs.