Directory listings with quotation marks fail

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

Moderator: Project members

Post Reply
Message
Author
xeon
226 Transfer OK
Posts: 128
Joined: 2009-08-19 03:18

Directory listings with quotation marks fail

#1 Post by xeon » 2013-03-16 21:13

Hello,

Is anyone else able to reproduce this problem?

1.) Create a directory with quotation marks in it ex. "testing"
2.) Go into the directory, then back out and go in again, refresh the listing.

You should get this error:

17:09:34 Status: Retrieving directory listing...
17:09:34 Command: CWD /""testing""
17:09:34 Response: 550 Failed to change directory.
17:09:34 Error: Failed to retrieve directory listing

Notice it has too many quotation marks on each end, it will also display both "testing" and ""testing"" on the remote site directory listing.

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

Re: Directory listings with quotation marks fail

#2 Post by botg » 2013-03-16 21:21

Please provide a complete log.

xeon
226 Transfer OK
Posts: 128
Joined: 2009-08-19 03:18

Re: Directory listings with quotation marks fail

#3 Post by xeon » 2013-03-16 21:28

17:25:32 Status: Connecting to 216.85.12.10:21...
17:25:32 Status: Connection established, waiting for welcome message...
17:25:32 Response: 220 (vsFTPd 3.0.2)
17:25:32 Command: USER testing
17:25:33 Response: 331 Please specify the password.
17:25:33 Command: PASS *********
17:25:33 Response: 230 Login successful.
17:25:33 Command: SYST
17:25:33 Response: 215 UNIX Type: L8
17:25:33 Command: FEAT
17:25:33 Response: 211-Features:
17:25:33 Response: AUTH TLS
17:25:33 Response: EPRT
17:25:33 Response: EPSV
17:25:33 Response: MDTM
17:25:33 Response: PASV
17:25:33 Response: PBSZ
17:25:33 Response: PROT
17:25:33 Response: REST STREAM
17:25:33 Response: SIZE
17:25:33 Response: TVFS
17:25:33 Response: UTF8
17:25:33 Response: 211 End
17:25:33 Command: OPTS UTF8 ON
17:25:33 Response: 200 Always in UTF8 mode.
17:25:33 Status: Connected
17:25:33 Status: Retrieving directory listing...
17:25:33 Command: PWD
17:25:33 Response: 257 "/"
17:25:33 Command: TYPE I
17:25:33 Response: 200 Switching to Binary mode.
17:25:33 Command: PASV
17:25:33 Response: 227 Entering Passive Mode (216,85,12,10,24,139).
17:25:33 Command: LIST
17:25:34 Response: 150 Here comes the directory listing.
17:25:34 Response: 226 Directory send OK.
17:25:34 Status: Directory listing successful
17:25:38 Status: Creating directory '/"testing"'...
17:25:38 Command: MKD "testing"
17:25:38 Response: 257 "/""testing""" created
17:25:41 Status: Retrieving directory listing...
17:25:41 Command: CWD "testing"
17:25:41 Response: 250 Directory successfully changed.
17:25:41 Command: PWD
17:25:41 Response: 257 "/""testing"""
17:25:41 Command: PASV
17:25:42 Response: 227 Entering Passive Mode (216,85,12,10,216,155).
17:25:42 Command: LIST
17:25:42 Response: 150 Here comes the directory listing.
17:25:42 Response: 226 Directory send OK.
17:25:42 Status: Directory listing successful
17:25:43 Status: Retrieving directory listing...
17:25:43 Command: CDUP
17:25:43 Response: 250 Directory successfully changed.
17:25:43 Command: PWD
17:25:43 Response: 257 "/"
17:25:43 Command: PASV
17:25:44 Response: 227 Entering Passive Mode (216,85,12,10,241,242).
17:25:44 Command: LIST
17:25:44 Response: 150 Here comes the directory listing.
17:25:44 Response: 226 Directory send OK.
17:25:44 Status: Directory listing successful
17:25:47 Status: Retrieving directory listing...
17:25:47 Command: CWD /""testing""
17:25:48 Response: 550 Failed to change directory.
17:25:48 Error: Failed to retrieve directory listing

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

Re: Directory listings with quotation marks fail

#4 Post by boco » 2013-03-16 23:19

I could reproduce this on my NAS (using ProFTPd). Seems to be a quote escaping problem somewhere.

For obvious reason this doesn't apply to Windows servers (where double quotes are not allowed in filenames).
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###

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

Re: Directory listings with quotation marks fail

#5 Post by botg » 2013-03-17 20:05

I see. Proper handling of double-quotes is explained on page 63 of RFC 959.

Will be fixed in the next version.

Post Reply