Bug 298871

Summary: unable to get keys out of gnome-keyring; causes nm-applet to segfault
Product: [Fedora] Fedora Reporter: Jesse Keating <jkeating>
Component: gnome-keyringAssignee: Alexander Larsson <alexl>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: rawhideCC: dcantrell, dcbw, gnomeuser
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-09-28 19:16:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 257221    

Description Jesse Keating 2007-09-20 18:42:45 UTC
With a keyring created after F8 Test2, applications are not able to get data out
of the keyring, or they dont' think they did and repeatedly prompt for the
passphrase.  Apps like nm-applet actually seg-fault.

Comment 1 Alexander Larsson 2007-09-21 08:36:19 UTC
I saw the nm-applet crash, but then i updated it to get debuginfo, and the new
version is acting generally weirdly, so i can't reproduce it. (In fact, i can't
find my wireless network even!)

Did you see this in any other app?

Comment 2 Alexander Larsson 2007-09-21 09:02:14 UTC
Ok. This is due to a change in gnome-keyring behaviour.
When searching for an item that doesn't exist it used to return a DENIED error.
This is a bit weird, as that indicates that the item exists, but the user
doesn't have access to it. 

So, in the bug http://bugzilla.gnome.org/show_bug.cgi?id=447315
This was changed to return a non-error result, but a list of zero items.
nm-applet doesn't look at the list and promptly dereferences the list.

A patch for nm-applet is availible in the ubunty bug:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/121228
(Patch is at http://launchpadlibrarian.net/8137066/01_fix_keyring_crash.patch)

Did you see this for any other apps? If so we should fix them too.

CCing dcbw for network manager feedback.


Comment 3 Jesse Keating 2007-09-21 11:58:45 UTC
I'm told that evolution would cycle over and over again when trying to get keys
out, so it also is likely not updated to handle the new return value.

Unfortunately I don't have anything else that uses the keyring.

Comment 4 Dan Williams 2007-09-21 14:12:55 UTC
Patch applies to 0.6.x applet; I think 0.7 should be OK here because it does "if
(g_slist_length (found_list) == 0)" which should work fine with a NULL found
list.  So if we ship with 0.6.x in F8 I'll make sure the patch gets in, and if
we ship with 0.7 I think we're OK.

Comment 5 Jesse Keating 2007-09-28 19:16:29 UTC
This no longer happens, closing.