Bug 130618
Summary: | Nautilus ftp display problem with directory with year as name | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Emmanuel Kowalski <emmanuel.kowalski> | ||||||||||
Component: | gnome-vfs2 | Assignee: | Alexander Larsson <alexl> | ||||||||||
Status: | CLOSED RAWHIDE | QA Contact: | |||||||||||
Severity: | medium | Docs Contact: | |||||||||||
Priority: | medium | ||||||||||||
Version: | 4 | CC: | mattdm | ||||||||||
Target Milestone: | --- | ||||||||||||
Target Release: | --- | ||||||||||||
Hardware: | i686 | ||||||||||||
OS: | Linux | ||||||||||||
Whiteboard: | |||||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||||
Doc Text: | Story Points: | --- | |||||||||||
Clone Of: | Environment: | ||||||||||||
Last Closed: | 2006-09-01 14:45:44 UTC | Type: | --- | ||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||
Documentation: | --- | CRM: | |||||||||||
Verified Versions: | Category: | --- | |||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||
Embargoed: | |||||||||||||
Attachments: |
|
Description
Emmanuel Kowalski
2004-08-22 20:48:01 UTC
Created attachment 102973 [details]
Screenshot of wrong display of subdirectories with year names
This shows the icon view of a directory containing subdirectories with
year names...
Looking quickly at the source code it seems it is a (known) bug in gnome-vfs rather than nautilus (cf. lines 216--221 in libgnomevfs/gnome-vfs-parse-ls.c from gnome-vfs-1.0.5-18). Since gftp must be doing the same parsing somewhere and gets it right, I tried to see if there was an obvious way of using gftp's implementation... but it's not obvious! Created attachment 103000 [details]
A possible (incomplete) patch
The attached code is a possible solution. The idea is that since the
name is at the end of the `ls' output, and since any non-year filename
is well parsed, we append a char `a' at the end of the line before
doing the parsing with gnome_vfs_parse_ls_lga in
libgnomevfs/gnome-vfs-parse-ls.c, then we remove the last char from the
parsed substring.
I didn't test with nautilus, only with the small test program extracted from
the source which is attached, so it is not a proper patch. Also I'm not very
knowledgeable about how GTK programming really works so there may well be
serious memory management errors for instance.
To compile:
$ gcc -g `pkg-config --cflags --libs glib` -o p parse-ls.c
To run (for example):
$ ./p "drwxr-xr-x 2 frog-par ftp 192 Mar 11 2003 2002"
Parse =
2002
Created attachment 103015 [details]
Better version of previous `patch'
Created attachment 103093 [details]
A working patch for gnome-vfs2
The attached patch for gnome-vfs2-2.6.0-8 solves the problem with nautilus,
for the server I access at least. I'm running it right now and will see
if any problem arises.
Fedora Core 2 is now maintained by the Fedora Legacy project for security updates only. If this problem is a security issue, please reopen and reassign to the Fedora Legacy product. If it is not a security issue and hasn't been resolved in the current FC3 updates or in the FC4 test release, reopen and change the version to match. I had the occasion to try on FC4 and the bug still exists and should be reopened; however I do not see on Bugzilla any efficient way of reopening a bug (is it a permission problem?) In any case the situation is the same as before. I haven't tried yet if the patch I was using still applies. ("ASSIGNED" is reopenned. Moving to FC4.) gnome-vfs 2.14 should fix this. Indeed, it's fixed even in FC5 (gnome-vfs2-2.14.2-1.i386.rpm); I had not checked after updating to FC5. Thanks! |