Ticket #4851 (closed Bug report: rejected)

Opened 6 months ago

Last modified 3 months ago

Filezilla will not descend into directories with spaces in their names.

Reported by: jeffcranmer Owned by:
Priority: normal Component: FileZilla Client
Keywords: Directory Listing Cc:
Operating system type: Windows Operating system version: Windows XP

Description

I have to access a BBS with some folder names that have spaces in the filenames. Filezilla used to be able to access all folders, but now, if I try to access a folder with spaces in the file names, I get the following error.

Status: Retrieving directory listing...
Command: CWD /All_files
Response: 250 CWD command successful.
Command: CWD ABC Engineering
Response: 550 The system cannot find the file specified.
Error: Failed to retrieve directory listing

It will sucessfully descend into folders with no white spaces in filenames.

Change History

Changed 6 months ago by codesquid

  • status changed from new to moreinfo

Looks to me like a broken server.

Can you please try the following: Enter these two raw FTP commands (In the menu, under Server -> Enter custom command...) after trying and failing to access the above directory:

CWD "ABC Engineering"
PWD

Changed 4 months ago by emale999

Have the same problem here - but only in case of a space at the end of the directory name.
Directory name looks like this: 'fuer Poco Domaene-Logo ' - there is a space after 'Logo'

Tried this under MacOS X and Windows with same result:

Befehl: CWD fuer Poco Domaene-Logo
Antwort: 550 fuer Poco Domaene-Logo: No such file or directory.
Fehler: Verzeichnisinhalt konnte nicht empfangen werden

Seems, FileZilla is looking for 'fuer Poco Domaene-Logo' instead of 'fuer Poco Domaene-Logo '

Trying "Custom Command" with

CWD fuer Poco Domaene-Logo

(with space after "Logo") works. I get a:

Befehl: CWD fuer Poco Domaene-Logo
Antwort: 250 CWD command successful.
Befehl: PWD
Antwort: 257 "/D01-0-b pdf Daten/Print/Adresseindrucke D01-0-b/fuer Poco Domaene-Logo " is current directory.

Changed 4 months ago by codesquid

  • status changed from moreinfo to closed
  • resolution set to outdated

You need to update to a server capable of the MLSD command to work with files and directories containing leading and/or trailing spaces. In older servers not capable of MLSD, these spaces are indistinguishable from padding whitespace.

Closing since original reporter is unresponsive.

Changed 4 months ago by jeffcranmer

  • status changed from closed to reopened
  • resolution outdated deleted

Not quite sure why, but the 'more information' request never reached my E-mail, so the first ticket notification I received was from emale999 followed by codequid closing the ticket.

To provide the extra information requested:

Command: CWD ABC Engineering
Response: 550 The system cannot find the file specified.
Error: Failed to retrieve directory listing
Command: CWD "ABC Engineering"
Response: 550 The system cannot find the file specified.
Command: PWD
Response: 257 "/All_files" is current directory.

I have forwarded the MLSD capable server comments to our FTP site administrator.

Changed 4 months ago by codesquid

  • status changed from reopened to closed
  • resolution set to rejected

It appears to me like your server does not support spaces in directories at all. Unfortunately there is nothing I can do other than to suggest updating to a better server

Changed 3 months ago by jeffcranmer

  • status changed from closed to reopened
  • resolution rejected deleted

When I look at this site using windows explorer, the filename appears as "ABC_Engineering" with an underscore.

When I try a couple of raw ftp commands, I get a good response.

Command: CWD ABC_Engineering
Response: 250 CWD command successful.
Command: PWD
Response: 257 "/All_files/ABC_Engineering" is current directory.

Unfortunately, this does not cause the folder window display to change, so I still can't see the directory contents.

In the file window, however, the _ is displayed as a space, and clicking on the folder will cause the following commands to be issed and the associated error responses.

Status: Retrieving directory listing...
Command: CWD /All_files
Response: 250 CWD command successful.
Command: CWD ABC Engineering
Response: 550 The system cannot find the file specified.
Error: Failed to retrieve directory listing

It looks like Filezilla is not correctly parsing underscores. This specific FTP site worked with an earlier version of Filezilla (though I'm not sure what version), so something that was changed in the software recently broke it.

This does not look like a server problem. Are you sure there is not a bug in the software?

Is there a way that I can access earlier versions of filezilla and downgrade until this problem is fixed?

Jeff

Changed 3 months ago by emale999

Because other FTP-programs can open the directory and a manual CWD with all necessary spaces works it doesn't really seem that it's the problem of the FTP server. At the other hand it's the server of an customer and I can't really tell him to install another server...

Changed 3 months ago by codesquid

  • status changed from reopened to closed
  • resolution set to rejected

FileZilla doesn't change the file and directory names returned by the server. If the server returns them without underscore but with a space instead, then the server should also accept them with a space for the CWD argument. There's nothing I can do.

Please upgrade to a proper server or refrain from using files/directories containing spaces.

Changed 3 months ago by jeffcranmer

  • status changed from closed to reopened
  • resolution rejected deleted

I've solved the problem by changing to winSCP.
It does not have the bug that filezilla does, and it can correctly read underscores in file names for all directories.

You may wish to fix this bug, as it is a bug, despite your ostrich-like protestations to the contrary. I, however, no longer give a rats-ass, as I have switched to winSCP.

Jeff

Changed 3 months ago by codesquid

  • status changed from reopened to closed
  • resolution set to rejected

FileZilla does not convert between spaces and underscores. It just doesn't. As such this isn't a bug in FileZilla.

Note: See TracTickets for help on using tickets.