BUG: Debian 'sid' SSH server - folders with trailing spaces

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
ADFHogan
500 Command not understood
Posts: 2
Joined: 2004-07-07 02:08
Location: Melbourne, Australia

BUG: Debian 'sid' SSH server - folders with trailing spaces

#1 Post by ADFHogan » 2004-07-07 02:44

A user created some IMAP folders with trailing spaces in their names.. Why I do not know.

Colleague got backup of said folders, extracted to their home directory on a server and then connected to said server with filezilla to download.

"File not found" when dragging and copying folders...

Opened terminal session.. used tab completion.. sure enough - trailing space.

Did a test..
Logged onto same server with FileZilla..
Created a directory with trailing space in filename..
Tried to access/download it.. failure..

Code: Select all

Command:	MKD test directory (trailing space here)
Response:	Directory created successfully
Status:	Retrieving directory listing...
Command:	LIST
Response:	Sucessfully received 26 items
Status:	Directory listing successful
Status:	Retrieving directory listing...
Command:	CD test directory
Response:	Directory /root/test directory: no such file or directory
Error:	Could not retrieve directory listing
Status:	Retrieving directory listing...
Command:	LIST
Response:	Sucessfully received 26 items
Status:	Directory listing successful
Status:	Retrieving directory listing...
Command:	CD test directory
Response:	Directory /root/test directory: no such file or directory
Error:	Could not retrieve directory listing
Tested in 2.2.6 and 2.2.7a..
Will test with 2.2.7b shortly..

Yes, I know that trailing and indeed leading spaces are brain dead :) ... but sadly I know a lot of users who end up using them.. that and tildes (arrrrgh - can you say Windows user who uploads their temp files? ... rnfr ./~.... rnto... :) )..

calebrw
226 Transfer OK
Posts: 87
Joined: 2004-05-11 01:47
Location: MPLS, MN, USA

Re: BUG: Debian 'sid' SSH server - folders with trailing spa

#2 Post by calebrw » 2004-07-07 23:23

ADFHogan wrote:(arrrrgh - can you say Windows user who uploads their temp files? ... rnfr ./~.... rnto... :) )..
Yes!
Windows user who uploads their temp files.
I suppose its not very practical but a good find regardless...
Caleb R. W.

ADFHogan
500 Command not understood
Posts: 2
Joined: 2004-07-07 02:08
Location: Melbourne, Australia

#3 Post by ADFHogan » 2004-07-08 04:51

Yeah.. Basically I work for a small govt run, community oriented (well we try, but bureaucracy being what it is) ISP..

Ipswitch have been on our backs to stop providing download links to WS_FTP LE etc. etc. so we scoured the net looking for replacements. FileZilla seems to be the best thing to recommend to people at this point - however dodgy filenames are something that users are often known to use..

Think of the worst string of characters - someone's used it :)

~TMP.....
$.......
~....$$$
_......____.....___ (spaces)
etc. etc. etc.

I especially love it when people "edit" their sites by opening the page in IE, changing it, then FTP'ing back, and wondering why things are screwed.. but yeah, anyway.. back to the topic at hand. It'd be cool if FileZilla could handle stupid users filename choices...

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

#4 Post by botg » 2004-07-08 06:54

I'll try to implement better support for those exotic filenames in FZ3. For FZ2, adding support for files with leading/trailing spaces would be difficult.

Btw, can't you configure your server to reject such invalid filenames? (Easiest solution: Use FAT as file system :twisted: )

Post Reply