Seahorse corrupts trustdb.gpg databse when no password is given while creating an openGPG key

Bug #480034 reported by Mahendra Tallur
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
seahorse (Ubuntu)
Incomplete
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: seahorse

Ubuntu 9.10, AMD64.

Well, this bug is quite easy to trigger.

Seahorse -> File -> New -> GPG Key
when a password is asked, don't choose any, just validate (it is accepted by seahorse as both (empty) passwords are the same :)

Then a popup window "key generation / primegen" is displayed for a very short time,
then the error windows is displayed : "general error".

OK, so far it's not an issue because it wasn't supposed to work.

BUT THEN all subsequent attempts to create a GPG key will fail. After "key generation / primegen" is displayed for several minutes, you also get "general error".

When I tried to create a key via the terminal I obtained :
gpg: fatal: /home/sandra/.gnupg/trustdb.gpg: base de confiance invalide

So I figured out that the .gnupg files were corrupted by my first attempt to create a key while not providing any password. Indeed, there were even some data in "pubring.gpg" with my name in it, that had been added during my failed attempts.

Anyway, after deleting .gnupg, everything worked as expected. I still think, though, that this behaviour is a bug :)
Cheers, thanks for reading ;)

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please answer these questions:

 * Is this reproducible?
 * If so, what specific steps should we take to recreate this bug?

 This will help us to find and resolve the problem.

Changed in seahorse (Ubuntu):
assignee: nobody → Ubuntu Desktop Bugs (desktop-bugs)
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Mahendra Tallur (mahen) wrote :

Thanks for you reply :)

It should be easy to reproduce, at least it is here :

* create a new GPG key in seahorse
* when you are asked for a password for this new key, don't choose any (blank passwords)
* the key creation should fail instantly
* and then the subsequent keys creations should also fail unless you delete you .gpg directory

At least this is what happens here (it was my first GPG key)

Cheers !

Changed in seahorse (Ubuntu):
status: Incomplete → New
Revision history for this message
Dave Vree (hdave) wrote :

I ran into another error where seahorse had corrupted the .gnugp directory. Thanks so much for reporting the fix to this problem. I cannot reproduce the error, but it happed after I added an ssh key from the command line via ssh-add.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for the report, it has been some time without any response or feedback in this bug report and we are wondering if this is still an issue for you with the latest release of Ubuntu the Natty Narwhal, May you please test with that version and comment back if you're still having or not the issue? Please have a look at http://www.ubuntu.com/download to know how to install that version.Thanks in advance.

Changed in seahorse (Ubuntu):
status: New → Incomplete
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.