Just FYI to devs: FTP protocol can't handle folder names with trailing spaces

English Support for Syncovery on Windows.
Post Reply
val
Posts: 1
Joined: Fri Jul 24, 2020 11:46 pm

Just FYI to devs: FTP protocol can't handle folder names with trailing spaces

Post by val »

Just FYI to devs: FTP protocol can't handle folder names with trailing spaces. Syncovery 9.03
It is hard to manually create folder like "space-at-end-here-+ " with space at the end in Windows Explorer or command line.
But it is possible to create such folders in cygwin bash or get externally.

FTP server returns the folder name properly (checked my ftp server with other apps and all works ok), with the space at the end (it if from ftplog* file):

Code: Select all

...
modify=20200724212820;perm=fle;type=dir;unique=FD00U2A60005;UNIX.group=100;UNIX.mode=0755;UNIX.owner=1000; space-at-end-here-+ 
...
But then, seems like the space is lost somewhere:

Code: Select all

...
Status: Connection established
Connection established
24.07.2020 15:05:32 Path is absolute
24.07.2020 15:05:32 SyncFTPTraverser.Connect Result: TRUE
EnterChDirMkDirLock(/Public/!/s/space-at-end-here-+)
EnterChDirMkDirLock(/Public/!/s/space-at-end-here-+) OK
SendCmd: CWD /Public/!/s/space-at-end-here-+
24.07.2020 15:05:32 SERVER RESPONSE: 550 /Public/!/s/space-at-end-here-+: No such file or directory

LeaveChDirMkDirLock(/Public/!/s/space-at-end-here-+)
ConnCheck: TRUE
ConnCheck: TRUE
24.07.2020 15:05:32 SERVER RESPONSE: 221 Goodbye.

Status: Disconnecting.
....
Thanks!

tobias
Posts: 1604
Joined: Tue Mar 31, 2020 7:37 pm

Re: Just FYI to devs: FTP protocol can't handle folder names with trailing spaces

Post by tobias »

Hello,
yes but this is intentional, because other than the listing, many other FTP commands do not work with trailing spaces.

We do not currently intend to support trailing spaces with FTP but maybe in a future update.

Post Reply