Launchpad just gives "Oops" page when trying to add a gpg key

Bug #2981 reported by LapTop006
This bug report is a duplicate of:  Bug #1972: Problem validating sign-only GPG key. Edit Remove
4
Affects Status Importance Assigned to Milestone
Launchpad itself
New
Medium
Unassigned

Bug Description

When I try to add my gpg key (6E63F4AA) using the short fingerprint I get invalid fingerprint, when I try the long fingerprint I just get the "Oops" page with no additional information.

My full fingerprint is:
Key fingerprint = 8915 6B1B 60F2 9A96 B5AA 4E29 F433 CB5F 6E63 F4AA

If for some reason my key is invalid for this there should be a better error message.

Revision history for this message
Celso Providelo (cprov) wrote :

Aparently gpgme can't encrypt for that key, its "g" subkey is expired:

sub 1024g/64CF76AA 2002-05-11 [expires: 2003-05-11]

Julien, could you try to encrypt data to yourself locally and post the result, we may have some clue.

Revision history for this message
LapTop006 (laptop006) wrote :

Yep, that failed, just added another ElGamel subkey for encryption, although I don't know why you require it, signing usually suffices (And you need a better error message for it).

laptop006@sparc006:~$ gpg -e < ucc > test
You did not specify a user ID. (you may use "-r")

Current recipients:

Enter the user ID. End with an empty line: 6E63F4AA

Current recipients:
2048g/469625B6 2005-10-10 "Julien Goodwin (Studio442) <email address hidden>"

Enter the user ID. End with an empty line:
laptop006@sparc006:~$ less test
"test" may be a binary file. See it anyway?
laptop006@sparc006:~$ file test
test: data

Uploaded the new and improved key to both wwwkeys.us.pgp.net and keyserver.ubuntu.com, but it still fails with the oops page.

Also if you put the keyid in it should throw an error saying you must use the complete fingerprint (much better would be getting any and all keys with that keyid and offering the user a choice)

Revision history for this message
Christian Reis (kiko) wrote :

The error I found in the error logs (but not in /errors):

  File "/srv/launchpad.net/production/launchpad/cronscripts/../lib/canonical/launchpad/browser/person.py", line 1051, in _validateGPG
    token.sendGPGValidationRequest(appurl, key, encrypt=True)
  File "/srv/launchpad.net/production/launchpad/cronscripts/../lib/canonical/launchpad/database/logintoken.py", line 81, in sendGPGValidationRequest
    key.fingerprint)
  File "/srv/launchpad.net/production/launchpad/cronscripts/../lib/canonical/launchpad/utilities/gpghandler.py", line 195, in encryptContent
    c.op_encrypt([key], 1, plain, cipher)
  File "/srv/launchpad.net/production/launchpad/cronscripts/../lib/pyme/util.py", line 56, in _funcwrap
    "Invocation of " + name)
  File "/srv/launchpad.net/production/launchpad/cronscripts/../lib/pyme/errors.py", line 46, in errorcheck
    raise GPGMEError(retval, extradata)
GPGMEError: Invocation of op_encrypt: source(0), code(1) (0,1)

Revision history for this message
LapTop006 (laptop006) wrote :

Failed in opera and firefox, worked in IE for some downright freaky reason, things seemed to be caching for no apparent reason, thanks to kiko on #launchpad. (Still like to see the other things addressed)

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.