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 48427 - Hidden files on FTP sites never shown in Nautilus
Hidden files on FTP sites never shown in Nautilus
Status: RESOLVED FIXED
Product: gnome-vfs
Classification: Deprecated
Component: Module: ftp
cvs (head)
Other All
: High normal
: ---
Assigned To: Christian Neumair
Christian Neumair
: 167511 (view as bug list)
Depends on:
Blocks: 167329 170577
 
 
Reported: 2001-07-20 17:08 UTC by Jonas De Vuyst
Modified: 2005-06-03 07:46 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
Proposed patch (against HEAD). (2.73 KB, patch)
2005-05-01 17:28 UTC, Christian Neumair
none Details | Review
Proposed patch #2 (against HEAD). (3.62 KB, patch)
2005-05-09 17:51 UTC, Christian Neumair
none Details | Review
Proposed patch #3 (against HEAD). (3.62 KB, patch)
2005-05-09 18:00 UTC, Christian Neumair
none Details | Review
Proposed patch #4 (against HEAD) (3.77 KB, patch)
2005-05-10 17:22 UTC, Christian Neumair
none Details | Review
Proposed patch #5 (against HEAD). (3.40 KB, patch)
2005-05-31 19:13 UTC, Christian Neumair
none Details | Review
Proposed patch #6. (3.43 KB, patch)
2005-05-31 19:18 UTC, Christian Neumair
none Details | Review
Proposed patch #7 (hopefully last one). (3.27 KB, patch)
2005-06-02 10:32 UTC, Christian Neumair
committed Details | Review

Description Jonas De Vuyst 2001-09-10 01:18:44 UTC
The 'Show Hidden Files' preference doesn't have any effect when viewing FTP
directories in Nautilus.



------- Additional Comments From yakk@yakk.net 2001-07-20 16:27:58 ----

Jonas,

When you log into the site and to a "ls", do the hidden files show up? Can you
give me the url of an FTP site to reproduce this?



------- Additional Comments From jonas.devuyst@advalvas.be 2001-07-20 16:45:40 ----

Hi,

When I use 'ftp' and do an 'ls' then the files don't show up. If I do an 'ls
-a', however, they do show up. I also just tried gftp and the hidden file showed
up in there (hidden directories OTOH don't show up in it.. I'll report this bug
tomorrow).

I encountered the same behaviour with the few FTPs I tried this with, if your
experience is different then you could perhaps try http://www.netfirms.com/.



------- Additional Comments From jonas.devuyst@advalvas.be 2001-07-28 13:46:52 ----

Seems I was incorrect about gftps behaviour. I was looking at cached data.

But I took a look at ftp-method.c and the problem seems to be that the command
"LIST -ld" or "LIST -ldL" is sent to the server, which queries only for normally
visible files.

I think that replacing both instances of "LIST -ld" with "LIST -lda" and the two
instances of "LIST -ldL" with "LIST -ldLa" will solve the problem. I haven't
tested this on GnomeVFS because I didn't really understand what was happening in
the source file, that's also the reason that I don't have a patch. I have,
however, tested this command with a Java API that had the same problem and
everything seemed to work as espected.

Hope this helps.



------- Additional Comments From yakk@yakk.net 2001-07-30 12:07:36 ----

Yep - I think you've isolated the problem. I'll try to get this fix in sometime
soon. Thanks for picking this up.



------- Bug moved to this database by unknown@bugzilla.gnome.org 2001-09-09 21:18 -------
Comment 1 Christian Kellner 2005-02-16 01:02:58 UTC
*** Bug 167511 has been marked as a duplicate of this bug. ***
Comment 2 Christian Neumair 2005-05-01 17:28:16 UTC
Created attachment 45911 [details] [review]
Proposed patch (against HEAD).

This patch does
* add a handler for the 504 ftp status code (bad command parameter)
* add a check (first time an open_directory is done) whether the server shows
hidden files
* fix a potential leak by adding a g_string_free_call

Could sb. please verify that this works correctly on servers that do NOT
support hidden files? I couldn't find any. But at least hidden file listing
works as expected for servers that do support it :).
Comment 3 Christian Neumair 2005-05-09 17:51:12 UTC
Created attachment 46249 [details] [review]
Proposed patch #2 (against HEAD).

Heavily improved patch. It does not only look way cleaner, in contrast to
attachment 45911 [details] [review] it also tries out multiple LIST parameter combinations and
therefore also fixes bug 170577.
Comment 4 Christian Neumair 2005-05-09 18:00:26 UTC
Created attachment 46250 [details] [review]
Proposed patch #3 (against HEAD).

Eeek. attachment 46249 [details] [review] would have broken MacOS X servers.
Comment 5 Christian Neumair 2005-05-09 18:02:14 UTC
Marking bug 48427 as dependant upon this one since patch #3 should also fix this
issue.
Comment 6 Alexander Brausewetter 2005-05-10 17:10:21 UTC
I would replace

	/* shouldn't happen, since we either should have failed with the last candidate
or should
	 * have found a working command */
	conn->list_cmd = NULL;
	return GNOME_VFS_ERROR_INTERNAL;

in get_list_command with a

	g_assert_not_reached ();
Comment 7 Christian Neumair 2005-05-10 17:22:43 UTC
Created attachment 46297 [details] [review]
Proposed patch #4 (against HEAD)

Changes:
* Implement Alex's suggestion. I wasn't sure whether this would be suitable for
a library, but this code should really never ever be reached
* Fix if statement in "default:" section
* Coding-style
Comment 8 Christian Neumair 2005-05-31 19:13:11 UTC
Created attachment 47072 [details] [review]
Proposed patch #5 (against HEAD).

At GUADEC, Christian Kellner suggested many tiny changes (mostly coding style).
They rectify a rewrite. This one looks and feels way cleaner.
Comment 9 Christian Neumair 2005-05-31 19:18:03 UTC
Created attachment 47073 [details] [review]
Proposed patch #6.

Added another assert.
Comment 10 Christian Neumair 2005-06-02 10:32:52 UTC
Created attachment 47132 [details] [review]
Proposed patch #7 (hopefully last one).
Comment 11 Christian Neumair 2005-06-02 11:06:48 UTC
Committed slightly different version (with a pointer fix).