[#6343] fetch keyserver fails because of exact=on
Summary fetch keyserver fails because of exact=on
Queue Horde Groupware Webmail Edition
Queue Version 1.0.3
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester skhorde (at) smail (dot) inf (dot) fh-bonn-rhein-sieg (dot) de
Created 02/28/2008 (128 days ago)
Due
Updated 03/05/2008 (122 days ago)
Assigned
Resolved 03/05/2008 (122 days ago)
Attachments
Milestone
Patch No

History
03/05/2008 Jan Schneider Comment #2
State ⇒ Not A Bug
Reply to this comment
This has already been fixed in the latest Horde version, aka Groupware 
1.1-RC2.
02/28/2008 skhorde (at) smail (dot) inf (dot) fh-bonn-rhein-sieg (dot) de Comment #1
Queue ⇒ Horde Groupware Webmail Edition
Summary ⇒ fetch keyserver fails because of exact=on
Type ⇒ Bug
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Reply to this comment
Usually I use the hkp server pgpkeys.pca.dfn.de as keyserver. GnuPG 
handles it well, but Horde does not find no keys on the server.

The culprit is:

+++ b/var/www/horde/lib/Horde/Crypt/pgp.php     Thu Feb 28 13:59:49 2008 +0100
@@ -711,7 +711,7 @@
          $fprint = '0x' . $fprint;

          /* Connect to the public keyserver. */
-        $cmd = 'GET /pks/lookup?op=get&exact=on&search=' . $fprint . 
' HTTP/1.0';
+        $cmd = 'GET /pks/lookup?op=get&search=' . $fprint . ' HTTP/1.0';
          $output = $this->_connectKeyserver($cmd, $server, $timeout);
          if (is_a($output, 'PEAR_Error')) {
              return $output;

The implementor defined "exact=on" variables let the request fail. 
Without it, it works.