vsftpd and utf8 errors

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: 131
Joined: 2009-08-19 03:18

vsftpd and utf8 errors

#1 Post by xeon » 2009-08-19 03:30

Hello,

I noticed that on vsftpd 2.0.5 FileZilla client works great however on vsftpd 2.0.6 and later FileZilla client seems to have issue with files/folders with some characters like ½ for example.

I've tested this on other ftp clients and so far FileZilla is the only one not working and giving errors.

I'm thinking this might be related to something in the 2.0.6 changelog for vsftpd:

- Pretend we have proper UTF8 support and respond positively to OPTS UTF8 ON.

Anyway, below is the complete ftp log where I connect open a folder and try to download a file in it.

Status: Connecting to 84.23.25.11:21...
Status: Connection established, waiting for welcome message...
Response: 220 (vsFTPd 2.1.2)
Command: USER testing
Response: 331 Please specify the password.
Command: PASS ****
Response: 230 Login successful.
Command: SYST
Response: 215 UNIX Type: L8
Command: FEAT
Response: 211-Features:
Response: EPRT
Response: EPSV
Response: MDTM
Response: PASV
Response: REST STREAM
Response: SIZE
Response: TVFS
Response: UTF8
Response: 211 End
Command: OPTS UTF8 ON
Response: 200 Always in UTF8 mode.
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/"
Command: TYPE I
Response: 200 Switching to Binary mode.
Command: PASV
Response: 227 Entering Passive Mode (84,23,25,11,54,170).
Command: LIST
Response: 150 Here comes the directory listing.
Status: Invalid character sequence received, disabling UTF-8. Select UTF-8 option in site manager to force UTF-8.
Response: 226 Directory send OK.
Status: Directory listing successful
Status: Retrieving directory listing...
Command: CWD Testing ½
Response: 250 Directory successfully changed.
Command: PWD
Response: 257 "/Testing ½"
Command: PASV
Response: 227 Entering Passive Mode (84,23,25,11,196,161).
Command: LIST
Response: 150 Here comes the directory listing.
Response: 226 Directory send OK.
Status: Calculating timezone offset of server...
Command: MDTM dd
Response: 213 20090819030710
Status: Timezone offsets: Server: 0 seconds. Local: -14400 seconds. Difference: -14400 seconds.
Status: Directory listing successful
Status: Connecting to 84.23.25.11:21...
Status: Connection established, waiting for welcome message...
Response: 220 (vsFTPd 2.1.2)
Command: USER testing
Response: 331 Please specify the password.
Command: PASS ****
Response: 230 Login successful.
Command: OPTS UTF8 ON
Response: 200 Always in UTF8 mode.
Status: Connected
Status: Starting download of /Testing ½/dd
Command: CWD /Testing ½
Response: 550 Failed to change directory.
Command: SIZE /Testing ½/dd
Response: 550 Could not get file size.
Command: TYPE A
Response: 200 Switching to ASCII mode.
Command: PASV
Response: 227 Entering Passive Mode (84,23,25,11,164,164).
Command: RETR /Testing ½/dd
Response: 550 Failed to open file.
Error: Critical error
Status: Retrieving directory listing...
Command: CWD /Testing ½
Response: 550 Failed to change directory.
Error: Failed to retrieve directory listing


Thank you!

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

Re: vsftpd and utf8 errors

#2 Post by botg » 2009-08-19 07:17

vsftpd + UTF8 generally works fine. However the files aren't stored with proper filenames in the server's filesystem.

The solution is to delete those files somehow and then reupload them with an UTF-8 capable client such as FileZilla.

Post Reply