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 334888 - sftp locations not accessible from gtkfilechooser
sftp locations not accessible from gtkfilechooser
Status: RESOLVED FIXED
Product: libgnomeui
Classification: Deprecated
Component: file-chooser
2.17.x
Other All
: High normal
: ---
Assigned To: Christian Neumair
Federico Mena Quintero
Depends on: 153679
Blocks:
 
 
Reported: 2006-03-17 14:43 UTC by Priit Laes (IRC: plaes)
Modified: 2007-01-08 22:26 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
dot-marks-the-spot.png (18.66 KB, image/png)
2006-03-17 16:26 UTC, Priit Laes (IRC: plaes)
  Details
Proposed libgnomeui patch (1.33 KB, patch)
2006-03-17 17:02 UTC, Christian Neumair
committed Details | Review

Description Priit Laes (IRC: plaes) 2006-03-17 14:43:45 UTC
Please describe the problem:
I first tried to report about "directory symlinks on ssh locations not choosable
in gtkfilechooser", but then I saw this patch:
http://mail.gnome.org/archives/gnome-vfs-list/2006-March/msg00022.html

Now links to directories show up nicely with directory icon, but somehow the
ssh:// locations are not choosable from the gtkfilechooser.

Steps to reproduce:
1. Apply the patch from
http://mail.gnome.org/archives/gnome-vfs-list/2006-March/msg00022.html
2. Use "Take Screenshot" tool
3. Try to choose a ssh:// location to save the screenshot


Actual results:
The contents of the ssh:// locations don't show up

Expected results:
The contents show up.

Does this happen every time?


Other information:
I try to reverse this patch to see if it's caused by it.
Comment 1 Priit Laes (IRC: plaes) 2006-03-17 14:50:36 UTC
After reversing this patch, the sftp location worked for me, but I would like to hear another success/failure about this issue :)
Comment 2 Christian Neumair 2006-03-17 16:10:32 UTC
Thanks, good catch! This also doesn't work for the http (neon) method. The file chooser seems to query sftp://foohost for determining the name of the toplevel button, which used to return GNOME_VFS_OK and filename "." but now returns GNOME_VFS_ERROR_NOT_FOUND. I'm not sure how common it is to have path-less URIs.
Comment 3 Priit Laes (IRC: plaes) 2006-03-17 16:26:15 UTC
Created attachment 61448 [details]
dot-marks-the-spot.png

You mean this dot which is marked on the screenshot?
Comment 4 Christian Neumair 2006-03-17 16:43:09 UTC
Exactly. gnomevfs-info returns a valid file info with filename "." for me if I call it on an sftp hostname without the symlink patch. It really shouldn't, IMHO the GTK+ GnomeVFS file system should handle this situation better, I'm currently investigating it.
Comment 5 Christian Neumair 2006-03-17 17:00:30 UTC
Reassigning to libgnomeui, the problem was indeed in GTKFileSystemGnomeVFS.
Comment 6 Christian Neumair 2006-03-17 17:02:03 UTC
Created attachment 61452 [details] [review]
Proposed libgnomeui patch
Comment 7 Federico Mena Quintero 2006-03-17 17:44:30 UTC
Why does it matter whether we have a trailing slash or not?

[There's another bug about typing C-l, then "http://www.openoffice.org" and getting nothing; someone evidently wants to load the HTML page there.  Would this patch fix that problem?]
Comment 8 Priit Laes (IRC: plaes) 2006-03-17 18:58:37 UTC
(In reply to comment #6)
> Created an attachment (id=61452) [edit]
> Proposed libgnomeui patch
Works like charm.. And this dot in location buttons is replaced with "sftp://user@host/" 


> [There's another bug about typing C-l, then "http://www.openoffice.org" and
> getting nothing; someone evidently wants to load the HTML page there.  Would
> this patch fix that problem?]
Pressing C-l then typing "http://www.openoffice.org" (without quotes) gives an error:
--
Could not retrieve information about the file

error accessing 'sftp://amd@store20.com/home/amd/http%3A%2F%2Fwww.openoffice.org': File not found
--
Pressing C-l then typing "http://www.openoffice.org/" (without quotes and trailing slash) gives an error:
--
The folder contents could not be displayed

http://www.openoffice.org/ is not a folder
--
Comment 9 Priit Laes (IRC: plaes) 2006-06-20 10:08:45 UTC
This depends on #153679
Comment 10 Kjartan Maraas 2006-10-05 10:55:28 UTC
bug 153679 has been fixed it seems. Is this patch ok to commit?
Comment 11 Priit Laes (IRC: plaes) 2006-10-19 07:23:45 UTC
Kjartan, thumbs up from me :)
Comment 12 Federico Mena Quintero 2007-01-08 20:20:02 UTC
Go ahead and commit :)
Comment 13 Christian Neumair 2007-01-08 22:26:28 UTC
Committed (r5216).
Comment 14 Christian Neumair 2007-01-08 22:26:57 UTC
Updating version, closing.