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 520399 - Nautilus can't access non-listed (hidden) ftp directory
Nautilus can't access non-listed (hidden) ftp directory
Status: RESOLVED FIXED
Product: gvfs
Classification: Core
Component: ftp backend
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Andreas Henriksson
gvfs-maint
: 551822 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-03-04 22:28 UTC by Tobias Wolf
Modified: 2009-08-07 19:37 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
Completely untested patch possibly fixes issue 2. (1.44 KB, patch)
2009-04-07 14:18 UTC, Andreas Henriksson
none Details | Review

Description Tobias Wolf 2008-03-04 22:28:24 UTC
This is not crucial for my daily ftp-ing, but I found a server that doesn't work at all with the gvfs backend (and not even gnome-vfs).

"21/tcp open  ftp     ProFTPD"

If you want to look at it say so, and I will send testing account credentials to your private email.
My version is 0.1.11-0ubuntu1.
Comment 1 Benjamin Otte (Company) 2008-03-06 14:43:16 UTC
If that still happens with current nautilus, it would be nice if I could get an account. Even though ProFTPD is supposed to work according to other people.
Comment 2 Tobias Wolf 2008-03-06 15:58:46 UTC
Still no cookie. I sent you the login details to otte {} gnome.org.
Perhaps a weird config on their side ...
Comment 3 Benjamin Otte (Company) 2008-03-06 18:41:31 UTC
Ok, there's multiple issues involved here.

1) Nautilus always starts in the root directory of mounts. If you may not access the root directory, Nautilus doesn't let you access the mount via clicking on it.

2) Nautilus queries the file info of directories before listing them. The ftp backend does produce file infos by listing the parent directory. So we fail that and Nautilus doesn't access it.

2b) The reason Nautilus fails is that the failing code returns G_IO_ERROR_EXISTS instead of G_IO_ERROR_PERMISSION_DENIED. Problem here is that ftp servers report code 550 for all error messages. We should probably try to parse the "informational" message to get a better error message.
Comment 4 Andreas Henriksson 2009-01-22 14:14:59 UTC
*** Bug 551822 has been marked as a duplicate of this bug. ***
Comment 5 Andreas Henriksson 2009-04-07 14:18:53 UTC
Created attachment 132272 [details] [review]
Completely untested patch possibly fixes issue 2.

Extend the create_file_info function (used by nautilus when querying file information) to not only LIST, but also try_cd and issue SIZE if feature is available and make up the details for hidden files/directories....

Beware! Completely untested.... need to run. Will look more at this later.
Comment 6 Benjamin Otte (Company) 2009-04-09 10:42:11 UTC
I applied the patch. It should be in gvfs 1.2.2 or later.
The patch doesn't solve the "Nautilus starts in home directory" problem, but it allows to manually cd into readable directories using the location bar now.
Comment 7 Aidan Fitzpatrick 2009-08-07 16:38:36 UTC
Thanks Andreas.

This patch lets us work around the "Nautilus starts in home directory" problem as Benjamin says.

As this bug is marked "resolved fixed" is there a separate bug for "Nautilus starts in home directory"? I've not been able to find one... and that's ultimately what needs fixing. (I appreciate not an easy fix re comment 3)
Comment 8 Tobias Wolf 2009-08-07 16:44:24 UTC
Actually I still cannot log into the ftp that this bug report originally was about.
why was is closed again?
Comment 9 Benjamin Otte (Company) 2009-08-07 17:57:29 UTC
Because you are supposed to manually browse to ftp://ftp.example.com/path/that/is/accessible in the location bar and we concluded this was good enough to close this bug.

And there should be a bug for the home directory problem, but I fail to find it.
Comment 10 Tobias Wolf 2009-08-07 19:05:19 UTC
Okay. I logged in with lftp and let it show the pwd:

ftp://<user>@ftp.alice-dsl.net/%2FWA

so %2F is url encoded for / (slash)

neither of these worked in Nautilus:

- Could not display "ftp://ftp.alice-dsl.net/WA"
Error: The file is not a directory
Please select another viewer and try again.

- or "ftp://ftp.alice-dsl.net//WA"

-or "ftp://ftp.alice-dsl.net/%2FWA"

what am I doing wrong?
Comment 11 Benjamin Otte (Company) 2009-08-07 19:37:28 UTC
I blame Nautilus. gvfs-ls ftp://ftp.alice-dsl.net//WA works fine here.

Could you open a new bug against Nautilus about that?