signon_identity_signout does not delete credentials from gnome keyring
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Online Accounts: signond keyring extension |
Fix Committed
|
Medium
|
Alberto Mardegan | ||
signon-keyring-extension (Ubuntu) |
Fix Released
|
Undecided
|
Alberto Mardegan |
Bug Description
Hey,
In clean installation of raring, signon_
Example python script to reproduce this issue:
#!/usr/bin/env python3
import argparse
import sys
from gi.repository import GLib
from gi.repository import GObject
from gi.repository import Accounts
from gi.repository import Signon
class AccountConsole:
def __init__(self):
def list_accounts(self, args):
accounts = self.manager.list()
if not accounts:
return
for account_id in accounts:
account = self.manager.
def remove_
self.args = args
if self.account is None:
return
value, signon_id = account.
if value is not None and signon_id != Accounts.
# is still stored even though the user would believe they have been deleted
print ( signon_id )
if self.identity is not None:
else:
print ("No credentials set for account")
def on_credentials_
app = AccountConsole()
parser = argparse.
subparsers = parser.
subparser = subparsers.
help='List existing accounts')
subparser.
subparser = subparsers.
subparser.
help='Id of the SignOn identity')
subparser.
help='Name of the key holding the SignOn ID')
subparser.
args = parser.parse_args()
if 'func' in args:
main_loop = GLib.MainLoop()
GLib.
main_loop.run()
else:
parser.
steps:
1) Launch "credentials-
2) check the password in gnome-keyring
3) execute the above script with "list" parameter
4) execute the above script with "remove_credentials <account_number>"
5) check the password in gnome-keyring (fail: the password have not been deleted). Expected result: credentials have been deleted
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: signond 8.49-0ubuntu2
ProcVersionSign
Uname: Linux 3.8.0-19-generic i686
ApportVersion: 2.9.2-0ubuntu8
Architecture: i386
Date: Thu Apr 25 14:04:27 2013
InstallationDate: Installed on 2013-04-24 (0 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release i386 (20130424)
MarkForUpload: True
SourcePackage: signon
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Ken VanDine: Disapprove
- PS Jenkins bot (community): Needs Fixing (continuous-integration)
-
Diff: 55 lines (+13/-2)4 files modifiedcommon-vars.pri (+1/-1)
debian/changelog (+8/-0)
debian/control (+1/-0)
src/secrets-storage.cpp (+3/-1)
- PS Jenkins bot (community): Needs Fixing (continuous-integration)
- Alberto Mardegan (community): Approve
-
Diff: 17 lines (+4/-0)1 file modifieddebian/changelog (+4/-0)
- Alberto Mardegan (community): Approve
- PS Jenkins bot (community): Approve (continuous-integration)
-
Diff: 47 lines (+16/-2)3 files modifiedcommon-vars.pri (+1/-1)
debian/changelog (+12/-0)
src/secrets-storage.cpp (+3/-1)
Thanks Lukas for reporting this bug! The script you provided didn't work for me, I'm attaching a slightly modified one which worked for me.
Anyway, the bug exists (even with the fixed script, the credentials are not removed). But I found where the problem is and a fix will be ready soon.