GNOME Bugzilla – Bug 318875
gnomevfs-ftp incorrectly parses some filenames
Last modified: 2005-10-14 18:12:29 UTC
Distribution: Unknown Package: gnome-vfs Severity: Normal Version: GNOME2.12.1 unspecified Gnome-Distributor: FreeBSD GNOME Project Synopsis: gnomevfs-ftp incorrectly parses some filenames Bugzilla-Product: gnome-vfs Bugzilla-Component: Module: ftp Bugzilla-Version: unspecified Description: Description of Problem: There is a bug in the parsing code of the gnomevfs ftp module, which doesn't properly parse the results returned by the LIST command. Here is an extract of the output of gnomevfs-ls for some directory, and the corresponding ngrep extract for the FTP data connection : pentane% gnomevfs-ls 'ftp://mux:xxxxxxxx@octane/space/divx' . (Directory, x-directory/normal) size 3072 mode 0755 .. (Directory, x-directory/normal) size 512 mode 0755 L'Odysee De l'Espace.avi (Regular, video/x-msvideo) size 724289536 mode 0444 [...] Now for the ngrep output : [...] T 10.0.0.1:21 -> 10.0.0.2:64216 [AP] 150 Opening BINARY mode data connection for '/bin/ls'... # T 10.0.0.1:54750 -> 10.0.0.2:51034 [A] total 57337382.drwxr-xr-x 2 mux mux 3072 Oct 13 23:37 ..drwxr-xr -x 6 root wheel 512 Apr 25 2004 ...-r--r--r-- 1 mux mux 724 289536 Apr 22 2004 2001 L'Odysee De l'Espace.avi.-r--r--r-- 1 mux mux 728614912 May 1 2004 21 Grams CD1.avi.-r--r--r-- 1 mux mux 730304 512 May 1 2004 21 Grams CD2.avi.-r--r--r-- 1 mux mux 730169344 Apr 22 2004 28 Jours Apres.avi.-rw-r--r-- 1 mux mux 732669952 Sep 4 04: 24 Appleseed.avi.-r--r--r-- 1 mux mux 723422208 Apr 22 2004 Arizona Dream.avi.-r--r--r-- 1 mux mux 733675520 Apr 22 2004 Battle Royale.a vi.-r--r--r-- 1 mux mux 498756482 Apr 22 2004 Bernie.avi.-r--r--r-- 1 mux mux 732852224 Apr 22 2004 Best Of Jackass 2.avi.-r--r--r-- 1 mux mux 730712064 Apr 22 2004 Best Of Jackass 3.avi.-r--r--r-- 1 mux mux 725889024 Mar 31 2004 Big Fish CD1.avi.-r--r--r-- 1 mux mux 671469568 Mar 31 2004 Big Fish CD2.avi.-r--r--r-- 1 mux mux 715366 168 Apr 22 2004 Blow.avi.-r--r--r-- 1 mux mux 731017216 Apr 22 2004 Bowling For Columbine CD1.avi.-r--r--r-- 1 mux mux 736698368 Apr 22 2004 Bowling For Columbine CD2.avi.-rw-r--r-- 1 mux mux 730257408 Ju n 16 21:35 Box 507.avi.-rw-r--r-- 1 mux mux 732467912 Sep 26 18:34 C' est Arrive Pres De Chez Vous.avi.-r--r--r-- 1 mux mux 732745728 Apr 2 2 2004 Confessions Of A Dangerous Mind.avi.-r--r--r-- 1 mux mux 7304 84736 May 12 2004 Diss # [...] No comments with respect to the content of this directory :-). As you can see, the file named "2001, L'Odyssee De L'Espace.avi" clearly confuses the hell out of the parsing code and it thinks the filename is just "L'Odyssee De L'Espace.avi", which doesn't exist. Steps to reproduce the problem: 1. Create a dummy file named "2001, L'Odyssee De L'Espace.avi", or that just starts with 200, I suppose that'll be enough... 2. Run some FTP server on the box with this file. 3. Read the directory content through gnomevfs, either with gnomevfs-ls, nautilus or whatever and see the name of the file. Actual Results: Expected Results: See above. ------- Bug moved to this database by unknown@gnome.bugs 2005-10-14 16:32 UTC ------- The original reporter of this bug does not have an account here. Reassigning to the person who moved it here, unknown@gnome.bugs. Previous reporter was mux@FreeBSD.org.
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of 163671 ***