Nautilus tries to connect to sftp bookmarks at inappropriate times

Bug #35027 reported by Henrik Nilsen Omma
12
Affects Status Importance Assigned to Milestone
libgnomeui
Invalid
Unknown
libgnomeui (Ubuntu)
Confirmed
High
Ubuntu Desktop Bugs

Bug Description

I have set a few bookmarks to remote servers in Nautilus. I've also added their passwords to the password wallet so that when I click on a bookmark it connects directly. Great!

However, it also tries (and fails) to connect at other times when it should not. For example, when I open a .tgz file by clicking on it and then try to extract a file. Presumably it opens the file dialogue which shares settings with Nautilus, and tries to access the bookmarked sites.

When I press Cancel it keeps insisting, and asks for the password for each bookmarked site repeatedly. This of course looks bad, but more it's more disturbing that it's trying to connect in the first place.

As a user it concerns me that my system is trying to connect to a remote server when I haven't asked it too. When else might Nautilus be connecting to the wrong place by accident. Some of the remote folders I have bookmarked are directly exposed on the web, so I can worry that one of my private files from my desktop might somehow accidentally appear on the web.

It might be related to bug #24211

Revision history for this message
Henrik Nilsen Omma (henrik) wrote :

I'm setting the severity to Major because it seems like a possible security issue.

Revision history for this message
Henrik Nilsen Omma (henrik) wrote : screenshot of attempted screenshot

The act of trying to take a standard screenshot triggers the bug as seen here. This shot was in turn taken with gimp.

btw, this is all using Dapper.

Revision history for this message
Trouilliez vincent (vincent-trouilliez-modulonet) wrote :

I have some kind of a similar ptoblem, and it's indeed extremely annoying to say the least. What happens here, is that I have bookmarked 3 FTP sites in Nautilus.
The first two, I have had bookmarked for ages, and they work fine. However the third one (that's the web space my ISP gives me), which I added only very recently (2 weeks ago) constantly asks me for the FTP server's password. Whatever action I perform on that site (open a folder, open a file, read or copy a file, what ahve you), it aks me the password each and every time ! :-O
Since it only does it for this site and not the other two, and since that FTP server is my ISP's one, and I have had nothing but problems in the past with them, I assumed it was just their server that was at fault. But then I saw this bug report(s), and am hoping it's somehow Gnome at fault, so hopefully it can be fixed...

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

Thank for your bug, it seems you list different issue which make not easy to reply to the bug. Your .tgz example is probably that it runs file-roller to extract it which is a different application and connect to the keyring

When you get the cancel is not clear. And what remote system it tries to connect and when is not clear neither. Could you enumerate a suite of actions giving that issue?

Changed in nautilus:
assignee: nobody → desktop-bugs
status: Unconfirmed → Needs Info
Revision history for this message
Henrik Nilsen Omma (henrik) wrote : Re: [Bug 35027] Nautilus tries to connect to sftp bookmarks at inappropriate times

Sebastien Bacher wrote:
> Public bug report changed:
> https://launchpad.net/malone/bugs/35027
>
> Task: ubuntu nautilus
> Assignee: (unassigned) => Ubuntu Desktop Bugs
> Status: Unconfirmed => Needs Info
>
> Comment:
> Thank for your bug, it seems you list different issue which make not easy to reply to the bug. Your .tgz example is probably that it runs file-roller to extract it which is a different application and connect to the keyring

Right, so it seems that any applications that use the gnome file
selector are affected by this when I initiate an action that causes it
to open it tries the keyring. That is presumably because the file
selector has the bookmarks from Nautilus on the right hand side which it
tries to open to get some info about.

> When you get the cancel is not clear. And what remote system it tries to connect and when is not clear neither. Could you enumerate a suite of actions giving that issue?

So I've just reproduced it for myself and will describe the steps here:

1. First the control test:
  * I have no bookmarks in Nautilus
  * I start Gedit and go to Open File
  * I get the gnome file selector without any problems
2. Setting a bookmark
  * I open Natilus and press Ctrl+l to change location
  * I type in 'sftp://people.ubuntu.com/home/henrik
  * Nautilus connects without any questions (it's already in my keyring)
  * While logged in there I set a bookmark in Nautilus which also
appears in the 'Places' menu
3. Producing the bug:
  * I open Gedit again and Click 'Open'
  * I get a warning saying that Gedit wants to access my keyring
  * If I click 'Allow Once' there is no problem (and I'm sure Always
Allow would work as well)
  * If I click 'Deny' I am prompted for the password for that server
  * If I click Cancel I get the same questions again, but then finally I
get to the normal file selector
  * If I have 5 bookmarks I have to click Deny twice and Cancel twice
for each, a grand total of 20 times every time I try to open a file on
my local system ...

OK, so I could make life easier for myself by clicking 'Always Allow'
each time this occurred and the problem would gradually go away. I would
be able to edit remote files with Gedit and all would be sweet. The
point is I don't want to allow this action, because I see no need for
it. I don't see why I should allow gnome to log in to a remote server
when I'm just just trying to open a file on my system. If gnome is
talking to a remote server, what is it saying? Is it uploading all my
private emails to the directory which is live on the web? Probably not,
but as a careful user (the most prudent kind) I don't know that. That
only takes one more bug ...

Currently the only reliable workaround I have found is to have no
bookmarks and just type in the location each time.

Revision history for this message
Henrik Nilsen Omma (henrik) wrote :

I'm changing the status from 'Needs Info' (since lots of info was supplied) to 'Unconfirmed' again.

Changed in nautilus:
status: Needs Info → Unconfirmed
Revision history for this message
Daniel Holbach (dholbach) wrote :

From this description it looks more like a gnome-keyring problem to me and I'm unable to confirm it (and didn't find a suitable upstream bug).

Revision history for this message
Henrik Nilsen Omma (henrik) wrote :

That might be. I don't know the interaction of these apps that well, but it would seem to me that the fault lies with the gnome file selector (is that part of the nautilus package?) because storing the bookmarks there is what causes an attempted connection to the net.

The gnome-keyring is then triggered and behaves as it should IMO, asking for my permissions to do something. The error is that the keyring should never be invoked in the first place because no attempt should be made to connect to these remote servers when I haven't requested it.

Revision history for this message
Daniel Holbach (dholbach) wrote :

As per discussion on IRC, reassigning to libgnomeui and adding comments on http://bugzilla.gnome.org/show_bug.cgi?id=321242

Changed in nautilus:
status: Unconfirmed → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

duplicate of bug #32873

Changed in libgnomeui:
status: Unconfirmed → Confirmed
Changed in libgnomeui:
status: Confirmed → Rejected
Revision history for this message
Ben (comsatcat) wrote : apport-collect data

Architecture: i386
DistroRelease: Ubuntu 9.04
Package: libgnomeui
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, no user)
 LANG=en_US.UTF-8
Uname: Linux 2.6.28-11-generic i686
UserGroups:

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

Other bug subscribers

Remote bug watches

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