[Bug 29485] symbolic links with spaces in their pathnames on ftp servers does not work

kthu Kjetil.Thuen at broadpark.no
Mon Jan 23 21:58:33 UTC 2006


Public bug reported:
https://launchpad.net/malone/bugs/29485

Affects: gnome-vfs2 (Ubuntu)
       Severity: Normal
       Priority: (none set)
         Status: Unconfirmed

Description:
There are problems with ftp and symbolic links that contain spaces. To
Illustrate I made the following directory:

[ kjetil ~ ]$ gnomevfs-ls file:///ftp/test/ | sort
1_without_Spaces                (Directory, x-directory/normal) size 4096       mode 0755
2_without_Spaces_Link1   [link: /ftp/test/1_without_Spaces ]  (Directory, x-directory/normal) size 4096       mode 0755
3 without Spaces Link2   [link: /ftp/test/1_without_Spaces ]  (Directory, x-directory/normal) size 4096       mode 0755
4 with Spaces           (Directory, x-directory/normal) size 4096       mode 0755
5_with_Spaces_Link1      [link: /ftp/test/4 with Spaces/ ]    (Directory, x-directory/normal) size 4096       mode 0755
6 with Spaces Link2      [link: /ftp/test/4 with Spaces/ ]    (Directory, x-directory/normal) size 4096       mode 0755
.               (Directory, x-directory/normal) size 4096       mode 0755
..              (Directory, x-directory/normal) size 4096       mode 0775

When accessing the dir via ftp I get the following:

[ kjetil ~ ]$ gnomevfs-ls ftp://kjetil:****@localhost/test | sort
1_without_Spaces                (Directory, x-directory/normal) size 4096       mode 0755
2_without_Spaces_Link1   [link: /test/1_without_Spaces ]        (Directory, x-directory/normal) size 4096       mode 0755
3        [link: /test/1_without_Spaces ]        (Directory, x-directory/normal) size 4096       mode 0755
4 with Spaces           (Directory, x-directory/normal) size 4096       mode 0755
5_with_Spaces_Link1      [link: 4 ]     (Symbolic Link, x-special/symlink)      size 14 mode 0777
6        [link: 4 ]     (Symbolic Link, x-special/symlink)      size 14 mode 0777
.               (Directory, x-directory/normal) size 4096       mode 0755
..              (Directory, x-directory/normal) size 4096       mode 0775

This makes the links numbered 3 and 6 (the ones with spaces in them) not
work.

As you can the links can point to a file containing spaces, but cannot
have spaces itself. The spaces need not be in the actual filename of the
link, they can be anywhere in its path.




More information about the desktop-bugs mailing list