Network Places menu has trouble opening sftp in nautilus

Bug #11574 reported by Ted Reed
18
Affects Status Importance Assigned to Milestone
gnome-panel (Ubuntu)
Fix Released
Critical
Sebastien Bacher

Bug Description

I think this is a gnome-panel problem, but I'm unsure, so I marked this unknown.

Using hoary, and the gnome-panel there added a new feature allowing me to add a
network place. (Places->Connect to server...) I gave it a shot and added one for
the system that hosts my web site, choosing ssh as the access method. If I then
go to the Places menu and choose this option ('dk'), I get the following error
message:

Cannot display location 'sftp://<email address hidden>/home/rizen/'

Details: There is no default action associated with this location.

If, however, I double-click the link placed on my desktop, or go to
Places->Network Servers and open it from there, it will properly open the
requested folder in nautilus, hence my belief that this is a gnome-panel issue.

Revision history for this message
Sebastien Bacher (seb128) wrote :

same problem here, Vincent, any idea of what's going wrong ?

Revision history for this message
Vincent Untz (vuntz) wrote :

Does 'gnome-open sftp://<email address hidden>/home/rizen/' work? If no, then
I don't think a gnome-panel bug.

Revision history for this message
Ted Reed (treed) wrote :

[0:25] [ben:/home/treed]% gnome-open sftp://<email address hidden>/home/rizen/
Error showing url: There is no default action associated with this location.

You called it, Vincent.

Revision history for this message
Julien Olivier (julo) wrote :

It seems that, when opening a network location from Nautilus, it opens it
through... Nautilus, while when you open it through the "Places" menu, it uses
gnome-open. And the problem seems to lie in the fact that gnome-open doesn't
have a handler for sftp links while it uses firefox for ftp links. More over,
this behaviour introduces an inconsistency because, if you open an FTP location
through Nautilus, it opens it in Nautilus, but if you open it from the "places"
menu, it opens in in Firefox (and there is no obvious way to change that).

Revision history for this message
Vincent Untz (vuntz) wrote :

It seems I forgot to add a note: it works for me here.

gnome-panel is not calling gnome-open, but uses the same mechanism as
gnome-open. This is the right thing to do: it uses the default handler for ftp,
sftp, etc. The problem here is to know how the default handler is defined. Do
you have something in /desktop/gnome/url-handlers/ftp (or sftp)? Is
/desktop/gnome/url-handlers/unknown/enabled set to true?

In the end, what's happening is that we're calling
gnome_vfs_url_show_with_env(). So the problem is in gnome-vfs or in the user's
configuration. I don't know.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Vincent, are you sure that is should use the gconf settings for this ? I don't
think so ...

$ gconftool-2 -R /desktop/gnome/url-handlers/sftp
$

$ gconftool-2 -R /desktop/gnome/url-handlers/ftp
 command = epiphany
 enable = true
 enabled = true

Do you have something for sftp ?
cf alex's comment on http://bugzilla.gnome.org/show_bug.cgi?id=144704

Revision history for this message
Ted Reed (treed) wrote :

[3:01] [ben:/home/treed]% gconftool-2 -R /desktop/gnome/url-handlers/ftp
[3:01] [ben:/home/treed]% gconftool-2 -R /desktop/gnome/url-handlers/sftp
[3:01] [ben:/home/treed]% gconftool-2 -R /desktop/gnome/url-handlers/unknown
 command = /usr/bin/firefox %s

If it's an error with my configuration, it's really an error with default
configurations, as I've never touched this part of it.

Revision history for this message
Ted Reed (treed) wrote :

The following does, however, fix the problem:

[3:19] [ben:/home/treed]% gconftool-2 --type boolean --set
/desktop/gnome/url-handlers/sftp/enabled true
[3:19] [ben:/home/treed]% gconftool-2 --type string --set
/desktop/gnome/url-handlers/sftp/command "/usr/bin/nautilus %s"

Revision history for this message
Sebastien Bacher (seb128) wrote :

Vincent, by any chance have you hacked your gconf config is this way to get this
working ? :p

Revision history for this message
Sebastien Bacher (seb128) wrote :

This has to be fixed for hoary, settings the appropriates parameters :)

Revision history for this message
Sebastien Bacher (seb128) wrote :

*** Bug 11761 has been marked as a duplicate of this bug. ***

Revision history for this message
Vincent Untz (vuntz) wrote :

> Vincent, by any chance have you hacked your gconf config is this way to get this
> working ? :p

No, I did not touch my configuration. Maybe you hacked your configuration :-)
What's happening for a fresh new user?

Revision history for this message
Sebastien Bacher (seb128) wrote :

(In reply to comment #12)

> No, I did not touch my configuration. Maybe you hacked your configuration :-)
> What's happening for a fresh new user?

Just tried with a new user on a ssh share, still the same bug.

Revision history for this message
Vincent Untz (vuntz) wrote :

I found the sftp problem :-)
I'm using ssh-agent so I don't need to authentify. We need to call
gnome_authentication_manager_init() in main.

I'm not sure about the FTP problem... If FTP need authentication, then that's
the same bug. Else, I don't know...

Revision history for this message
Vincent Untz (vuntz) wrote :

This will be fixed in 2.9.4. I just need to release it :-)

Revision history for this message
Sebastien Bacher (seb128) wrote :

(In reply to comment #14)
> I found the sftp problem :-)
> I'm using ssh-agent so I don't need to authentify. We need to call
> gnome_authentication_manager_init() in main.

yep, with ssh-agent that works fine, well done Vincent :)

> I'm not sure about the FTP problem... If FTP need authentication, then that's
> the same bug. Else, I don't know...

Let's wait for the release to test that :)

Revision history for this message
Sebastien Bacher (seb128) wrote :

ok, that's fixed with 2.9.4, thanks Vincent :)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.