GpgmeError raised importing public gpg key

Bug #568456 reported by Diogo Matsubara
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Won't Fix
Critical
Brad Crittenden

Bug Description

As seen on OOPS-1569O128 a GpgmeError: (7, 1, 'General error') was raised while importing a public gpg key.

This is similar to bug 61915 but not the same thing.

Revision history for this message
Gary Poster (gary) wrote :

We'll hope that the new version of the gpgme code that will be part of the next release will make this problem go away--or at least give us better diagnostics!

Changed in launchpad-foundations:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Diogo Matsubara (matsubara) wrote :

Seems like the new version gives us unicode exceptions rather than plain strings. See OOPS-1594O2131

Revision history for this message
Curtis Hovey (sinzui) wrote :

I thought I saw a pastebin of a patch that was cowboyed on a machine that cast the uncide to ascii. Something like:
    result = context.import_(str(newkey))

Why can't we do this?

Revision history for this message
Curtis Hovey (sinzui) wrote :

This is the error we are seeing

  Module lp.registry.browser.person, line 3686, in claim_gpg
    key = gpghandler.retrieveKey(self.fingerprint)
  Module canonical.launchpad.utilities.gpghandler, line 431, in retrieveKey
    key = self.importPublicKey(pubkey)
  Module canonical.launchpad.utilities.gpghandler, line 231, in importPublicKey
    result = context.import_(newkey)
GpgmeError: (7, 1, u'General error')

Revision history for this message
Curtis Hovey (sinzui) wrote :

Michael fixed a unicode error in gpghandler.
https://code.edge.launchpad.net/~michael.nelson/launchpad/ppa-generate-key-failure/+merge/24871

I think we want to generalise this or just ensure we do not pass what we have not cast.

Changed in launchpad:
importance: Low → Critical
Brad Crittenden (bac)
Changed in launchpad:
status: Triaged → In Progress
assignee: nobody → Brad Crittenden (bac)
Revision history for this message
Brad Crittenden (bac) wrote :

I've tried to reproduce this problem locally using the fingerprint shown in the OOPS hooked up to the real keyserver but have not seen a failure. The OOPS tool also shows this particular error hasn't occurred recently.

Am closing for now until we see a reoccurrence.

Changed in launchpad:
status: In Progress → Won't Fix
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.