GNOME Bugzilla – Bug 163671
ftp errors with directories named with numbers
Last modified: 2006-01-10 10:31:41 UTC
From https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=137304 Description of problem: 1. Use Nautilus (browser mode) to open a directory on an FTP server. 2. Create a folder. 3. Right-click and choose Rename. 4. Name it with a number (say, 2004). There is a pause, and then the operation appears to fail. Refreshing doesn't help. Nautilus appears to display the result of an ls -l command instead of an actual name, and one cannot open the directory. (The rename operation actually succeeds, so it looks like the problem is in displaying the directory.)
I think its confusing the number with a date when parsing the directory listing.
I have the same problem This is what I get in epiphany Index of ftp://********@ftp.student.lu.se/ Up to higher level directory Directory: documents 01/25/05 22:48:00 Directory: public 02/11/03 00:00:00 Directory: www 01/25/05 22:48:00 this is what I get from nautilus ftp://********@ftp.student.lu.se/out.out ftp://********@ftp.student.lu.se/pub ftp://********@ftp.student.lu.se/ldaptest ftp://********@ftp.student.lu.se/drwxr-xr-x%20843%20root%20%20%20%20%20other%20%20%20%20%20%20%2024576%20Nov%2015%20%202002%201993 ftp://********@ftp.student.lu.se/drwxr-xr-x%205026%20root%20%20%20%20%20other%20%20%20%20%20%20114688%20Sep%2019%20%202003%201998 ftp://********@ftp.student.lu.se/drwxr-xr-x%204023%20root%20%20%20%20%20other%20%20%20%20%20%20%2090112%20Sep%20%208%20%202003%201997 ftp://********@ftp.student.lu.se/drwxr-xr-x%20390%20root%20%20%20%20%20other%20%20%20%20%20%20%2016384%20Dec%2027%20%202000%201992 ftp://********@ftp.student.lu.se/drwxr-xr-x%203614%20root%20%20%20%20%20other%20%20%20%20%20%20%2081920%20Jan%2027%2008%3A27%202005 ftp://********@ftp.student.lu.se/drwxr-xr-x%203449%20root%20%20%20%20%20other%20%20%20%20%20%20%2081920%20Jan%2023%20%202004%201996 ftp://********@ftp.student.lu.se/drwxr-xr-x%202777%20root%20%20%20%20%20other%20%20%20%20%20%20%2065536%20Jan%2013%20%202004%201995 ftp://********@ftp.student.lu.se/drwxr-xr-x%2019980%20root%20%20%20%20%20other%20%20%20%20%20%20434176%20Feb%20%206%20%202004%201999 ftp://********@ftp.student.lu.se/drwxr-xr-x%20179%20root%20%20%20%20%20other%20%20%20%20%20%20%20%208192%20Dec%2027%20%202000%201991 ftp://********@ftp.student.lu.se/drwxr-xr-x%201629%20root%20%20%20%20%20other%20%20%20%20%20%20%2040960%20Dec%2027%20%202000%201994 ftp://********@ftp.student.lu.se/drwxr-xr-x%2013480%20root%20%20%20%20%20other%20%20%20%20%20%20294912%20Jun%2024%20%202004%202002 ftp://********@ftp.student.lu.se/drwxr-xr-x%2013422%20root%20%20%20%20%20other%20%20%20%20%20%20294912%20Jun%2024%20%202004%202003 ftp://********@ftp.student.lu.se/drwxr-xr-x%2013273%20root%20%20%20%20%20other%20%20%20%20%20%20286720%20Dec%2028%2022%3A02%202004 ftp://********@ftp.student.lu.se/drwxr-xr-x%2013114%20root%20%20%20%20%20other%20%20%20%20%20%20286720%20Dec%2027%20%202000%202000 ftp://********@ftp.student.lu.se/drwxr-xr-x%2012332%20root%20%20%20%20%20other%20%20%20%20%20%20270336%20Nov%2025%20%202003%202001 ftp://********@ftp.student.lu.se/drwxr-xr-x%20%2075%20root%20%20%20%20%20other%20%20%20%20%20%20%20%208192%20Dec%2027%20%202000%201990 ftp://********@ftp.student.lu.se/drwxr-xr-x%20%2045%20root%20%20%20%20%20other%20%20%20%20%20%20%20%208192%20Dec%2027%20%202000%201989 ftp://********@ftp.student.lu.se/drwxr-xr-x%20%2028%20root%20%20%20%20%20other%20%20%20%20%20%20%20%208192%20Dec%2027%20%202000%201988 ftp://********@ftp.student.lu.se/drwxr-xr-x%20%2027%20root%20%20%20%20%20other%20%20%20%20%20%20%20%208192%20Dec%2027%20%202000%201987 ftp://********@ftp.student.lu.se/drwxr-xr-x%20%2017%20root%20%20%20%20%20other%20%20%20%20%20%20%20%208192%20Dec%2027%20%202000%201985 ftp://********@ftp.student.lu.se/drwxr-xr-x%20%2015%20root%20%20%20%20%20other%20%20%20%20%20%20%20%208192%20Dec%2027%20%202000%201986 ftp://********@ftp.student.lu.se/drwxr-xr-x%20%20%208%20root%20%20%20%20%20other%20%20%20%20%20%20%20%208192%20Dec%2027%20%202000%201980 ftp://********@ftp.student.lu.se/drwxr-xr-x%20%20%206%20root%20%20%20%20%20other%20%20%20%20%20%20%20%20%20%2096%20Dec%2027%20%202000%201984 ftp://********@ftp.student.lu.se/drwxr-xr-x%20%20%206%20root%20%20%20%20%20other%20%20%20%20%20%20%20%20%20%2096%20Dec%2027%20%202000%201979 ftp://********@ftp.student.lu.se/drwxr-xr-x%20%20%205%20root%20%20%20%20%20other%20%20%20%20%20%20%20%20%20%2096%20Dec%2027%20%202000%201983 ftp://********@ftp.student.lu.se/drwxr-xr-x%20%20%205%20root%20%20%20%20%20other%20%20%20%20%20%20%20%20%20%2096%20Dec%2027%20%202000%201982 ftp://********@ftp.student.lu.se/drwxr-xr-x%20%20%205%20root%20%20%20%20%20other%20%20%20%20%20%20%20%20%20%2096%20Dec%2027%20%202000%201981 ftp://********@ftp.student.lu.se/drwxr-xr-x%20%20%204%20root%20%20%20%20%20other%20%20%20%20%20%20%20%20%20%2096%20Dec%2027%20%202000%201976 ftp://********@ftp.student.lu.se/drwxr-xr-x%20%20%204%20root%20%20%20%20%20other%20%20%20%20%20%20%20%20%20%2096%20Dec%2027%20%202000%201972 ftp://********@ftp.student.lu.se/drwxr-xr-x%20%20%204%20root%20%20%20%20%20other%20%20%20%20%20%20%20%20%20%2096%20Dec%2027%20%202000%201907 ftp://********@ftp.student.lu.se/drwxr-xr-x%20%20%203%20root%20%20%20%20%20other%20%20%20%20%20%20%20%20%20%2096%20Dec%2027%20%202000%201978 ftp://********@ftp.student.lu.se/drwxr-xr-x%20%20%203%20root%20%20%20%20%20other%20%20%20%20%20%20%20%20%20%2096%20Dec%2027%20%202000%201977 ftp://********@ftp.student.lu.se/drwxr-xr-x%20%20%203%20root%20%20%20%20%20other%20%20%20%20%20%20%20%20%20%2096%20Dec%2027%20%202000%201933 ftp://********@ftp.student.lu.se/drwxr-xr-x%20%20%203%20root%20%20%20%20%20other%20%20%20%20%20%20%20%20%20%2096%20Dec%2027%20%202000%201908 ftp://********@ftp.student.lu.se/drwxr-xr-x%20%20%203%20root%20%20%20%20%20other%20%20%20%20%20%20%20%20%20%2096%20Dec%2027%20%202000%201906 ftp://********@ftp.student.lu.se/drwxr-xr-x%20%20%202%20admhbg%20%20%20other%20%20%20%20%20%20%20%208192%20Jan%2026%2001%3A00%20admhbg ftp://********@ftp.student.lu.se/diverse ftp://********@ftp.student.lu.se/admhbg (I've replaced the login info with stars)
John, is that a windows server? If so, it might be bug #151594
*** Bug 143819 has been marked as a duplicate of this bug. ***
seems to be a bug in gnome_vfs_parse_ls_lga () gnome_vfs_parse_ls_lga ("drwxr-xr-x 2 ftp ftp 48 Feb 13 12:47 2099", &s, &filename, &linkname); this segfaults. If you put a letter before the year it works fine ...
Created attachment 37430 [details] Test file fore various ftp dir listenings
Created attachment 37431 [details] [review] Integrate the patch above into gnome-vfs source
the current issue seems to be in vfs_parse_filedate () (libgnomevfs/gnome-vfs-parse-ls.c): /* This is a special case for ctime () or Mon DD YYYY hh:mm */ if (is_num (columns[idx]) && ((got_year = is_year (columns[idx], &tim)) || is_time (columns[idx], &tim))) idx++; /* time & year or reverse */ "drwxr-xr-x 2 ftp ftp 48 Feb 13 12:47 2099" is parsed as "Mon DD hh:mm YYYY" but that's " Mon DD hh:mm directory" in fact
*** Bug 166735 has been marked as a duplicate of this bug. ***
I've just run into this bug. Are there any known listing formats that do show both year and time?
On a sidenote: bug 112463 suggests to use a list parser which claims to understand virtually every possible LIST output.
This list parser doesn't have an appropriate licence for gnome-vfs though, and I don't really expect DJB to agree to relicence it (I hope I'll be proven wrong ;)
the ubuntu bugzilla also has a bug with a patch about this: https://bugzilla.ubuntu.com/show_bug.cgi?id=11232
a patch from Shixin Zeng <shixinzeng@sjtu.edu.cn> is here: https://bugzilla.ubuntu.com/attachment.cgi?id=2529
did the patch get any attention yet? *hope, it might be something for 2.12.1*
*** Bug 316999 has been marked as a duplicate of this bug. ***
*** Bug 317162 has been marked as a duplicate of this bug. ***
*** Bug 317811 has been marked as a duplicate of this bug. ***
*** Bug 317778 has been marked as a duplicate of this bug. ***
*** Bug 318875 has been marked as a duplicate of this bug. ***
Shixin's patch isn't quiet appropriate, although his idea was right.
Created attachment 53497 [details] [review] Proposed patch Information on the patch available under: http://mail.gnome.org/archives/gnome-vfs-list/2005-October/msg00013.html
Created attachment 53699 [details] [review] Committed Patch The attached patch was committed to the 2.12 branch and GnomeVFS HEAD, which vastly improves the GnomeVFS la -lga parser wrt dates, times of day and years used as filenames.
In which release has the patch appeared / will it appear?
*** Bug 326440 has been marked as a duplicate of this bug. ***