[Bug 270149] New: hkp search fails on keyids/fingerprints of more than 8 bytes

Philippe Teuwen phil-kde at teuwen.org
Tue Apr 5 13:01:08 BST 2011


https://bugs.kde.org/show_bug.cgi?id=270149

           Summary: hkp search fails on keyids/fingerprints of more than 8
                    bytes
           Product: kdepim
           Version: 4.4
          Platform: Debian unstable
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: libkdepim
        AssignedTo: kdepim-bugs at kde.org
        ReportedBy: phil-kde at teuwen.org


Version:           4.4 (using KDE 4.4.5) 
OS:                Linux

Some keyservers such as onak can return long keyids/fingerprints.
Kleopatra fails dealing with such keys/keyservers.


Reproducible: Always

Steps to Reproduce:
In Kleopatra, specify a keyserver which runs e.g. onak
Search for keys.


Actual Results:  
In the dialog box with the list of found keys, if some keys have a long UID,
fingerprint of the first one will be empty and the list will stop, failing to
display the remainder keys.



Behind the scene, kleopatra (or whatever middleware) uses gpg to query the
keyserver.

Here is an example in command-line of the query from kleopatra, searching for
keys with "teuwen" in it:

$ gpg --use-agent --batch --no-sk-comment --status-fd 1 --no-tty --charset utf8
--enable-progress-filter --display :0.0 --ttyname /dev/pts/6 --ttytype xterm
--with-colons --fixed-list-mode --with-fingerprint --with-fingerprint
--search-keys -- teuwen
gpg: searching for "teuwen" from hkp server xxx.xxxxxxx.xxx
info:1:2
pub:00112233445566778899AABBCCDDEEFF00112233:1:3072:1201784426::
uid:Philippe Teuwen <censored>
pub:440A3A9E56E9D90E99D763A87A135F579AD7E3DB:17:1024:1020637827::
uid:Philippe Teuwen (Doegox) <phil at teuwen.org>

In Kleopatra, I'll see only the firs key, without fingerprint info in the
dialogbox

Now if I intercept gpg call and truncate keyIDs to keep the last 8 bytes:

pub:CCDDEEFF00112233:1:3072:1201784426::
uid:Philippe Teuwen <censored>
pub:7A135F579AD7E3DB:17:1024:1020637827::
uid:Philippe Teuwen (Doegox) <phil at teuwen.org>

Kleopatra happily displays the keys and accepts to import them.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list