Mail Applet crashes after changing the default keyring

Bug #682541 reported by letartuffe
74
This bug affects 11 people
Affects Status Importance Assigned to Milestone
Awn Extras
Fix Released
Low
Gabor Karsay

Bug Description

If a Gnome keyring is made default other than the one where Mail applet's password is stored or if the key or the whole keyring is deleted, the applet will crash with BadArgumentsError or KeyError. (Depending on the new default keyring: KeyError if it has a key with the same id, else it's BadArgumentError.) The tracebacks are different for each backend.

If you use GMail BadArgumentsError only:
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/awn/extras/awnlib.py", line 1525, in init_start
    applet_class(applet)
  File "/usr/local/share/avant-window-navigator/applets/mail/mail.py", line 80, in __init__
    self.login()
  File "/usr/local/share/avant-window-navigator/applets/mail/mail.py", line 113, in login
    self.perform_login(key, startup=True)
  File "/usr/local/share/avant-window-navigator/applets/mail/mail.py", line 131, in perform_login
    self.mail.update() # Update
  File "/usr/local/share/avant-window-navigator/applets/mail/mail.py", line 513, in update
    if not "username" in self.key.attrs:
  File "/usr/local/lib/python2.6/dist-packages/awn/extras/awnlib.py", line 1114, in __getAttrs
    return gnomekeyring.item_get_attributes_sync(None, self.token)
BadArgumentsError

If you use IMAP either KeyError or BadArgumentsError:
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/awn/extras/awnlib.py", line 1525, in init_start
    applet_class(applet)
  File "/usr/local/share/avant-window-navigator/applets/mail/mail.py", line 80, in __init__
    self.login()
  File "/usr/local/share/avant-window-navigator/applets/mail/mail.py", line 113, in login
    self.perform_login(key, startup=True)
  File "/usr/local/share/avant-window-navigator/applets/mail/mail.py", line 126, in perform_login
    self.mail = self.back(key) # Login
  File "/usr/local/share/avant-window-navigator/applets/mail/mail.py", line 833, in __init__
    args = key.attrs["url"].split(":")
KeyError: 'url'

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/awn/extras/awnlib.py", line 1525, in init_start
    applet_class(applet)
  File "/usr/local/share/avant-window-navigator/applets/mail/mail.py", line 80, in __init__
    self.login()
  File "/usr/local/share/avant-window-navigator/applets/mail/mail.py", line 113, in login
    self.perform_login(key, startup=True)
  File "/usr/local/share/avant-window-navigator/applets/mail/mail.py", line 126, in perform_login
    self.mail = self.back(key) # Login
  File "/usr/local/share/avant-window-navigator/applets/mail/mail.py", line 833, in __init__
    args = key.attrs["url"].split(":")
  File "/usr/local/lib/python2.6/dist-packages/awn/extras/awnlib.py", line 1114, in __getAttrs
    return gnomekeyring.item_get_attributes_sync(None, self.token)
BadArgumentsError

If you use POP either KeyError or BadArgumentsError:
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/awn/extras/awnlib.py", line 1525, in init_start
    applet_class(applet)
  File "/usr/local/share/avant-window-navigator/applets/mail/mail.py", line 80, in __init__
    self.login()
  File "/usr/local/share/avant-window-navigator/applets/mail/mail.py", line 113, in login
    self.perform_login(key, startup=True)
  File "/usr/local/share/avant-window-navigator/applets/mail/mail.py", line 131, in perform_login
    self.mail.update() # Update
  File "/usr/local/share/avant-window-navigator/applets/mail/mail.py", line 731, in update
    if self.key.attrs["usessl"]:
KeyError: 'usessl'

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/awn/extras/awnlib.py", line 1525, in init_start
    applet_class(applet)
  File "/usr/local/share/avant-window-navigator/applets/mail/mail.py", line 80, in __init__
    self.login()
  File "/usr/local/share/avant-window-navigator/applets/mail/mail.py", line 113, in login
    self.perform_login(key, startup=True)
  File "/usr/local/share/avant-window-navigator/applets/mail/mail.py", line 131, in perform_login
    self.mail.update() # Update
  File "/usr/local/share/avant-window-navigator/applets/mail/mail.py", line 731, in update
    if self.key.attrs["usessl"]:
  File "/usr/local/lib/python2.6/dist-packages/awn/extras/awnlib.py", line 1114, in __getAttrs
    return gnomekeyring.item_get_attributes_sync(None, self.token)
BadArgumentsError

Tags: mail traceback

Related branches

onox (onox)
tags: added: mail traceback
onox (onox)
summary: - BadArgumentsError in Mail Applet:
+ BadArgumentsError in Mail Applet
Revision history for this message
onox (onox) wrote : Re: BadArgumentsError in Mail Applet

Please provide the following information (in the future try to read the guidelines below the bug report form):
- which distribution and version you use
- version of awn-extras or awn-applets-(something here). Name depends on which distro you have
- which e-mail backend did you use
- how to reproduce this bug (which steps the developer should follow)

If you use ubuntu and you're using Awn 0.4.0, then try to uninstall everything and then install the testing PPA (See https://launchpad.net/~awn-testing/+archive/ppa). If you cannot reproduce the bug in the testing PPA version, then please tell us that. Even then you should provide the information requested above.

Without this information I'm going to guess it's either a duplicate of bug #669135 or bug #610088.

Changed in awn-extras:
status: New → Incomplete
Revision history for this message
iosuna86 (iosuna86) wrote :

Before having this problem, and in order to remove the annoying keyring prompt upon startup, I deleted the "passwords:default" key in "Passwords and Encryption Keys" and selected the "passwords:login" key as the default one. I followed the instructions found on Ubuntuforums.

How can we reverse this?

Revision history for this message
Gabor Karsay (gabor-karsay) wrote :

Please post the link to the instructions on Ubuntuforums, this way we can hopefully reproduce the bug. Please answer the other questions, too:
- which version of Ubuntu you use
- version of awn-applets-(something here)
- which e-mail backend did you use (GMail, IMAP, POP?)

letartuffe (letartuffe)
Changed in awn-extras:
status: Incomplete → Confirmed
status: Confirmed → Fix Committed
Revision history for this message
letartuffe (letartuffe) wrote :

sorry, I'm late.

I think that Ignacio Osuna is right.
I deleted the "password:default" key.
The problem is solved.

thank you.

- I use
Ubuntu 10.10
awn 0.40 & mail applet 0.4.1
Gamil as e-mail backend

Revision history for this message
Gabor Karsay (gabor-karsay) wrote :

Thanks for your feedback. The applet shouldn't crash in this situation, therefore setting status back to "Triaged".

Changed in awn-extras:
importance: Undecided → Low
status: Fix Committed → Triaged
Changed in awn-extras:
status: Triaged → In Progress
description: updated
summary: - BadArgumentsError in Mail Applet
+ Mail Applet crashes after changing the default keyring
Changed in awn-extras:
assignee: nobody → Gabor Karsay (gabor-karsay)
milestone: none → 0.4.2
Revision history for this message
Gabor Karsay (gabor-karsay) wrote :

Fix committed in rev. 1502.

Changed in awn-extras:
status: In Progress → Fix Committed
Povilas Kanapickas (p12)
Changed in awn-extras:
status: Fix Committed → Fix Released
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.