Page MenuHome GnuPG

--search-key broken with duplicate key ID (short)
Closed, ResolvedPublic

Description

Release: 1.4.1

Environment

Ubuntu Linux Breezy (5.10)

Description

--search-key broken with duplicate key ID (short).

Here is the example:
gpg --search-key Figuiere
gpg: searching for "Figuiere" from hkp server keyserver.ubuntu.com
(1) Hubert Figuiere <hub@nit.ca>

Hubert Figuiere <hub@figuiere.net>
Hubert Figuiere <hub@abisource.com>
Hubert Figuiere <hfiguiere@teaser.fr>
Pedro R. Fernandez (GNU/Linux User #000.204.555 http://counter.li.org/
  1024 bit DSA key A56E15A3, created: 2002-01-30

(2) Hubert Figuiere <hub@abisource.com>

Hubert Figuiere <hfiguiere@teaser.fr>
Pedro R. Fernandez (GNU/Linux User #000.204.555 http://counter.li.org/
  1024 bit DSA key A56E15A3, created: 2001-10-02

Keys 1-2 of 2 for "Figuiere". Enter number(s), N)ext, or Q)uit >

In short key ID A56E15A3 is duplicate as it match two keys on the server: mine (uid = hub@fguiere.net) and someone else (uid = Pedro R. Fernandez)

While I expect that searching with key ID should find both keys, search by name should not. It breaks other software like GPG enigmail for the same feature.

Fix

Unknown

Event Timeline

This is not a GnuPG bug, but a keyserver bug. GnuPG just
displays what the keyserver returns, and the keyserver is
returning the wrong thing.

Reporting this to the sks developers.