Crash due to corrupted password in keyring

Bug #872853 reported by Julian Edwards
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
launchpadlib
Triaged
High
Unassigned

Bug Description

Traceback (most recent call last):
  File "./disable_projects.py", line 190, in <module>
    script.run()
  File "/home/ed/canonical/lp-branches/lp-dev-utils/lpscripts.py", line 366, in run
    self.lp = lp_factory(self.opts.lpsystem, self.name)
  File "/home/ed/canonical/lp-branches/lp-dev-utils/lpscripts.py", line 41, in lp_factory
    return Launchpad.login_with(app_name, system_name, version='devel')
  File "/usr/lib/python2.6/dist-packages/launchpadlib/launchpad.py", line 539, in login_with
    credential_save_failed, version)
  File "/usr/lib/python2.6/dist-packages/launchpadlib/launchpad.py", line 342, in _authorize_token_and_login
    authorization_engine.unique_consumer_id)
  File "/usr/lib/python2.6/dist-packages/launchpadlib/credentials.py", line 273, in load
    return self.do_load(unique_key)
  File "/usr/lib/python2.6/dist-packages/launchpadlib/credentials.py", line 322, in do_load
    return Credentials.from_string(credential_string)
  File "/usr/lib/python2.6/dist-packages/launchpadlib/credentials.py", line 89, in from_string
    credentials.load(StringIO(value))
  File "/usr/lib/python2.6/dist-packages/lazr/restfulclient/authorize/oauth.py", line 158, in load
    parser.readfp(readable_file)
  File "/usr/lib/python2.6/ConfigParser.py", line 305, in readfp
    self._read(fp, filename)
  File "/usr/lib/python2.6/ConfigParser.py", line 510, in _read
    raise e
ConfigParser.ParsingError: File contains parsing errors: <???>
        [line 6]: '\x00\x00\x00\n'
        [line 7]: '\x00\x00\x00'

Changed in launchpadlib:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Julian Edwards (julian-edwards) wrote :

More info:
 * I am using KDE.
 * Reproducible 100% by first authenticating so the data gets stored in kwallet, and the 2nd invocation of the program results in the stack trace.
 * The data in kwallet looks fine and not corrupt:

[1]
consumer_secret =
access_token = zVM5MwvXXXXXXXXVtktkZ
consumer_key = System-wide: Ubuntu (beast)
access_secret = q0n81J6LnM58gGMsXXXXXXXXXXXXXXXXxCVq2SKFCBwRl3FKSt6c3HHqk1vqBqNHvKxVrK0Q0

(tokens deliberately part-corrupted with XXXes here)

Revision history for this message
Benji York (benji) wrote :

This and bug 745801 might be related.

Revision history for this message
Julian Edwards (julian-edwards) wrote :

I found out what was wrong, it's a problem in launchpadlib. See bug 877374

Revision history for this message
Julian Edwards (julian-edwards) wrote :

Forgot I'd filed this!

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.