After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 163671 - ftp errors with directories named with numbers
ftp errors with directories named with numbers
Status: RESOLVED FIXED
Product: gnome-vfs
Classification: Deprecated
Component: Module: ftp
2.13.x
Other All
: Normal normal
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
: 143819 166735 316999 317162 317778 317811 318875 326440 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-01-11 14:23 UTC by Alexander Larsson
Modified: 2006-01-10 10:31 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
Test file fore various ftp dir listenings (2.65 KB, text/x-csrc)
2005-02-13 15:18 UTC, Christian Kellner
  Details
Integrate the patch above into gnome-vfs source (945 bytes, patch)
2005-02-13 15:19 UTC, Christian Kellner
committed Details | Review
Proposed patch (2.01 KB, patch)
2005-10-14 20:53 UTC, Christian Neumair
none Details | Review
Committed Patch (2.43 KB, patch)
2005-10-20 15:52 UTC, Christian Neumair
committed Details | Review

Description Alexander Larsson 2005-01-11 14:23: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.)
Comment 1 Alexander Larsson 2005-01-11 14:24:37 UTC
I think its confusing the number with a date when parsing the directory listing.
Comment 2 John Nilsson 2005-01-28 02:24:38 UTC
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)
Comment 3 Christophe Fergeau 2005-01-28 09:27:44 UTC
John, is that a windows server? If so, it might be bug #151594
Comment 4 Sebastien Bacher 2005-02-13 13:42:33 UTC
*** Bug 143819 has been marked as a duplicate of this bug. ***
Comment 5 Sebastien Bacher 2005-02-13 13:45:39 UTC
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 ...


Comment 6 Christian Kellner 2005-02-13 15:18:28 UTC
Created attachment 37430 [details]
Test file fore various ftp dir listenings
Comment 7 Christian Kellner 2005-02-13 15:19:55 UTC
Created attachment 37431 [details] [review]
Integrate the patch above into gnome-vfs source
Comment 8 Sebastien Bacher 2005-02-13 15:26:10 UTC
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 
Comment 9 Martin Wehner 2005-03-01 01:56:31 UTC
*** Bug 166735 has been marked as a duplicate of this bug. ***
Comment 10 Ben Hutchings 2005-04-14 12:00:19 UTC
I've just run into this bug.  Are there any known listing formats that do show
both year and time?
Comment 11 Christian Neumair 2005-05-02 13:11:35 UTC
On a sidenote: bug 112463 suggests to use a list parser which claims to
understand virtually every possible LIST output.
Comment 12 Christophe Fergeau 2005-05-02 13:16:57 UTC
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 ;)
Comment 13 Sebastien Bacher 2005-06-08 12:07:45 UTC
the ubuntu bugzilla also has a bug with a patch about this:
https://bugzilla.ubuntu.com/show_bug.cgi?id=11232
Comment 14 Sebastien Bacher 2005-06-08 12:10:04 UTC
a patch from Shixin Zeng <shixinzeng@sjtu.edu.cn> is here:
https://bugzilla.ubuntu.com/attachment.cgi?id=2529
Comment 15 Daniel Holbach 2005-09-20 10:07:15 UTC
did the patch get any attention yet? *hope, it might be something for 2.12.1*
Comment 16 Sebastien Bacher 2005-09-23 10:54:43 UTC
*** Bug 316999 has been marked as a duplicate of this bug. ***
Comment 17 Sebastien Bacher 2005-09-25 16:42:16 UTC
*** Bug 317162 has been marked as a duplicate of this bug. ***
Comment 18 Christian Neumair 2005-10-03 11:17:12 UTC
*** Bug 317811 has been marked as a duplicate of this bug. ***
Comment 19 Christian Neumair 2005-10-03 11:51:32 UTC
*** Bug 317778 has been marked as a duplicate of this bug. ***
Comment 20 Christian Neumair 2005-10-14 18:12:31 UTC
*** Bug 318875 has been marked as a duplicate of this bug. ***
Comment 21 Christian Neumair 2005-10-14 20:42:11 UTC
Shixin's patch isn't quiet appropriate, although his idea was right.
Comment 22 Christian Neumair 2005-10-14 20:53:50 UTC
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
Comment 23 Christian Neumair 2005-10-20 15:52:01 UTC
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.
Comment 24 Markus Bertheau 2006-01-10 10:29:50 UTC
In which release has the patch appeared / will it appear?
Comment 25 Markus Bertheau 2006-01-10 10:31:41 UTC
*** Bug 326440 has been marked as a duplicate of this bug. ***