[Bug 42088] New: Unsetting a secret password doesn't remove it from the keyring

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed May 23 13:48:17 CEST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=42088

             Bug #: 42088
           Summary: Unsetting a secret password doesn't remove it from the
                    keyring
    Classification: Unclassified
           Product: Telepathy
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: mission-control
        AssignedTo: telepathy-bugs at lists.freedesktop.org
        ReportedBy: guillaume.desmottes at collabora.co.uk
         QAContact: telepathy-bugs at lists.freedesktop.org


Once a MC password has been imported by Empathy, it calls UpdateParameters({},
('password')) to unset it, but this doesn't remove it from gnome-keyring as
expected.

--- Comment #1 from Guillaume Desmottes <guillaume.desmottes at collabora.co.uk> 2011-10-21 05:20:35 PDT ---
Looks like it's supposed to get removed in
mcd-account-manager-default:_keyring_commit() but is not because the key is not
in amd->secrets at this point.

--- Comment #2 from Guillaume Desmottes <guillaume.desmottes at collabora.co.uk> 2011-10-21 05:30:19 PDT ---
I wrote a stupid script to help me debugging this.
(pasting as for some reason bz doesn't me to attach it)


import gobject
import dbus
import dbus.glib

import sys

BUS = 'org.freedesktop.Telepathy.AccountManager'
PATH =
'/org/freedesktop/Telepathy/Account/gabble/jabber/cassidy_2dtest1_40jabber_2ebelnet_2ebe0'
IFACE = 'org.freedesktop.Telepathy.Account'

bus = dbus.SessionBus()
iface = dbus.Interface(bus.get_object(BUS, PATH), IFACE)

if sys.argv[1] == 'set':
    print iface.UpdateParameters({'password': 'XXX'}, ())
else:
    print iface.UpdateParameters({}, ('password',))

--- Comment #3 from Will Thompson <will.thompson at collabora.co.uk> 2012-05-23 04:48:17 PDT ---
I can confirm that this issue still exists with MC 1:5.12.0-2, Empathy
3.4.2.1-1 and gnome-keyring 3.4.1-3.

When I log in, two passwords for my Collabora account show up in Seahorse:

• One, labelled “Telepathy password”, is the old, wrong one.
• The other, labelled “Instant messaging password”, is the new, right one.

The former shows up in `mc-tool show`.

Hitting Clear and unticking [ ] Remember password in Empathy removes the new,
correct password from the keyring, and stops the old password from appearing in
`mc-tool show`. Disabling and re-enabling the account throws up a password
prompt. I enter the correct password there, and bingo! I'm online. But this
only lasts for this session. If I log out and in again, MC picks the old
password back up again.

I guess one fix for this bug would be to remove Gnome Keyring support from MC
(bug 32578), but *something* would have to clear up the old password entries.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the telepathy-bugs mailing list