Bug 459744

Summary: can't use sftp:// in file-selector ...
Product: [openSUSE] openSUSE 11.1 Reporter: Michael Meeks <mmeeks>
Component: GNOMEAssignee: Federico Mena Quintero <federico>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P1 - Urgent CC: captain.magnus, dimstar, federico, vuntz
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard: maint:released:11.1:22519
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 338003    
Attachments: gtk2-bnc459744-bgo545980-file-chooser-entry-uris.diff

Description Michael Meeks 2008-12-17 12:40:26 UTC
So - this is a pretty embarassing cock-up ...

I open the file-selector; press ctrl-l for the location bar, and enteR:

sftp://192.168.0.7/

which is a local machine, I get an error dialog:

"The folder contents could not be displayed
"Error stating file '/home/michael/esc/sftp:/192.168.0.7': No such file or directory"

This is not that impressive ;-) Nautilus' location bar copes nicely with this.

cf. the comment at:
    http://news.opensuse.org/2008/12/16/sneak-peeks-at-opensuse-111-the-latest-gnome-desktop/

[snip]
I don’t know how you can say the network facilities of Gnome are better. I am experimenting with Gnome at the moment and am frustrated with the lack of transparent network access.

In KDE I could open a file from sftp, ftp, smb or many other protocols and work with them like local files - directly from the open file dialog. (save them etc)
In gnome… I have have to “connect to server” and then go the file open dialog. After this annoying extra step… files open read only.

Gnome network support seems useless to me compared with KDE’s ioslaves.
[snip]
Comment 1 Magnus Boman 2008-12-25 20:33:35 UTC
Is this still happening? Works for me from both Nautilus and the run-dialog (alt+f2)
Comment 2 Magnus Boman 2008-12-25 22:33:20 UTC
Dominique explained the issue to me on IRC and it's not working... Sorry for the spam...
Comment 3 Federico Mena Quintero 2009-01-14 20:45:00 UTC
See these upstream bugs:
http://bugzilla.gnome.org/show_bug.cgi?id=545980 - GtkFileChooserEntry doesn't handle URIs properly
http://bugzilla.gnome.org/show_bug.cgi?id=551337 - Gedit crashes while browsing ssh locations

Also, note that gtk_file_system_parse() starts by doing
  if (str[0] == '~')
    file = g_file_parse_name (str);
  else
    file = g_file_resolve_relative_path (base_file, str);

And g_file_resolve_relative_path(), with base_file being a local file, will simply say "oh, 'sftp://blahblah' doesn't start with a slash, so it must be a subdirectory".
Comment 4 Federico Mena Quintero 2009-01-23 01:59:33 UTC
Created attachment 267093 [details]
gtk2-bnc459744-bgo545980-file-chooser-entry-uris.diff

I'll use this patch; it is already upstream.
Comment 5 Federico Mena Quintero 2009-01-23 19:34:31 UTC
Submitted to the internal build service to SUSE:SLE-11:GA with request id 49.

I'll submit it to openSUSE:Factory next and 11.1 as well.
Comment 6 Federico Mena Quintero 2009-01-23 21:02:37 UTC
Submitted to GNOME:Factory with request id 5529.
Comment 7 Vincent Untz 2009-01-24 12:42:57 UTC
(In reply to comment #6)
> Submitted to GNOME:Factory with request id 5529.

Sorry, had to reject it: we now have GTK+ 2.15 in G:F and you had two other patches which we used to have but have been integrated upstream. Can you resubmit, but just with this patch?
Comment 8 Vincent Untz 2009-01-24 12:48:58 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > Submitted to GNOME:Factory with request id 5529.
> 
> Sorry, had to reject it: we now have GTK+ 2.15 in G:F and you had two other
> patches which we used to have but have been integrated upstream. Can you
> resubmit, but just with this patch?

Actually, no need for GNOME:Factory: it's in GTK+ 2.15.1 and we'll have it soon. But you probably need to do the 11.1 update in some way -- not sure where to branch from :/
Comment 9 Federico Mena Quintero 2009-02-12 17:06:15 UTC
Submitted for 11.1.
Comment 10 Swamp Workflow Management 2009-04-28 13:36:01 UTC
Update released for: gtk2, gtk2-branding-upstream, gtk2-debuginfo, gtk2-debugsource, gtk2-devel, gtk2-doc, gtk2-lang
Products:
openSUSE 11.1 (debug, i586, ppc, ppc64, x86_64)