Summary | Unable delete PGP Public Keyring |
Queue | IMP |
Queue Version | HEAD |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | slusarz (at) horde (dot) org |
Requester | david (at) tmv (dot) gov (dot) tw |
Created | 10/06/2004 (7646 days ago) |
Due | |
Updated | 11/09/2004 (7612 days ago) |
Assigned | 10/06/2004 (7646 days ago) |
Resolved | 11/09/2004 (7612 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Resolved
I am sure that both of them exist in horde_pref
pref_uid pref_scope pref_name pref_value
-------- ---------- --------- ----------
txg16@tmv.gov.tw imp search_sources localsql tmv_ldap
sources selected.
Thanks for your reply.I think i have found the reason why cause such
problem.There are two address books defined to be expanded In
IMP/Option/Address Books,one is called "My addressbook" and another
one is "Shared Directory".The order of them are:
1st "Shared Directory",2nd "My addressbook".
I used "My addressbook" as my default address book for adding
e-mail,so the PGP entries were add to it.Here is the screenshot for
your reference http://210.241.49.67/~txg16/tmp/address_book.gif .
If i switch the order of the two address books (1st=My
addressbook,2nd=Shared Directory)and delete the public key again,the
PGP public key was deleted successfully but error message(No
pgpPublicKey entry found for test@tmv.gov.tw) still raise.
I think IMP just only check the 1st address book while delete PGP
public key.If the key not found in 1st book then raise error and stop
check next address book.
David Chang
$address)? You should verify that this email address truly does not
exist in the backend.
================================================================
$res = $driver->search(array('email' => $address));
if (is_a($res, 'Turba_List')) {
if ($res->count() > 1) {
return PEAR::raiseError(_("More than 1 entry
found"), 'horde
.error', null, null, $source);
}
print_r($res) ;
$ob = $res->next();
and here is what Turba said:
================================================================
turba_list Object ( [objects] => Array ( ) [fresh] => Array ( )
[_usortCriteria] => lastname [_usortType] => text )
David Chang
most of the debugging work here, BTW, since I can not reproduce this
at all.
,"NULL" was show up.
David Chang
$ob = $res->next();
ADD --> print_r($ob);
If you get output, please mask your username/password and post the output.
print.screenshot can found here
http://210.241.49.67/~txg16/tmp/del_key.gif
Here is part of the api.php,that i modified.
=============================================
$list = $driver->search(array('email' => $address));
print_r($list);
if (is_a($list, 'Turba_List')) {
$count += $list->count();
if ($list->count() == 1) {
$ob = $list->next();
if ($ob->hasValue($field)) {
$result = $ob->getValue($field);
}
}
}
}
942 of turba/lib/api.php:
print_r($list);
and let me know what that returns.
Here is pgppublic field thet belong to that user:
-----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.2.1 (MingW32)
mQGiBEFjcvARBADrMR5+cJNIYveA1Y+Kn2xyT49t59l9gMFvI0G9grB1f+8yKrWC
0WGH7kqaPssYTOZ73Os8yaNF0MrEyDjms0s8Vqa0Bpyn4+LQFm10/7fkJQyn/JCG
1u5Sp7213Ckt9kyrYEtWP8UkywRb/IvYDYoSOegxMOiYZ/rEyDaeQvl5YwCg4e0m
VMPBYodJJ8HTYQqsQsyzcL8EAJG4Xga62cHI88oEfZwR+11NYgQwfaJXahrCJOkg
XqgEUY3BpFyNXp4xO62N/NiTL/NdCpnalgF88QtheLzSGq1wO/2pb5NZhbrEYDpS
cWFy+TfCPW7HEWbCsmzR5r/k2ejyBQQGVgmMMgOuSwftbr5rI0Cjsg35qLr2Y0mL
ZLiaBADJG+mADdm+RUz85onbf4x4BxW755iabiJRxIUm7lsDlx6hL0+8h5G+Cv6q
dCbLr5l2IiEa6dcp4hTu78KhYI9HnQflCGQ7WYakVyNLGQRknYRX/ufa0ZDZoNBn
0Y60OzkebJ0VJugmphE6C+KP4Wyf2+THdSLD7G0jzhOTsw0zfbQWdGVzdCA8dGVz
dEB0bXYuZ292LnR3PohZBBMRAgAZBQJBY3LwBAsHAwIDFQIDAxYCAQIeAQIXgAAK
CRBAcNKF/6V4jJ4AAJ9AyALSYFoae2VB4LVJzBguCHQU+wCdESEhy2Xqssrifjew
+Qk/8ELeJUO5Ac0EQWNzAxAHAN3D0YrLVos00g3X2CKxicrDxTjlIob/UEjyzPLL
0MByAPEYO8YTwL+Uqn0iOfq0jELPEM7dN5X4YZg4CTE5Dd7rPb7JlYx5OPlCSdKG
avtfW+x8N4a4OmfHyFAPBe1iCB0a+bbdj8AyQBJFGh2JNpfLBD6snr0MPmbX3ckP
KPDr2N4VtR7olWhQEocb2jsXzQxU8Zm510xL5rSqYoEmgeEtGbI0sUk5+8r+iphu
ST0cwsqoJWIZ3TH+OLDDEoU6ycb7GMT7PgXFh+aAppf2g/QBinPTgEfqFUijqgWp
ZdtLAAMGBv9yhHPWTpHMrjQZDnu7SUSHqIxOd1czMY6YS3xMmsbqBFeWKyI2zeuK
PtpTEXnhD8TBxa/2NbuqBO3+wMaXJC/EdWXXq1QEWM/2XRbJgLMC9zfj6YPpCJc9
Rn31Z3AjnFJypM6TiPo69Zn5uU+hqDXZXpVhbFd9UIKT6njbJLdEzJjWcDOo9PRv
MYlPpWne7bGNx/UmeCZk3n7RRyCH9ZmfpzZs8t2BeyJxlQg6kSXSJgnwtjGY1TDD
h6Tn7dAFXzmAVAwNJKgA7r+G7SEA7JcIxe3oux4qy9SxDnEzl5NEGYhGBBgRAgAG
BQJBY3MDAAoJEEBw0oX/pXiMBhQAn1a1/cdYmGFA1dSzW6YzHPMk/YA/AJ9p4Utq
x+8DK/9IRJt8v3pygOJipg== =uAmG -----END PGP PUBLIC KEY BLOCK-----
has to be in there.
State ⇒ Assigned
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Unable delete PGP Public Keyring
Queue ⇒ IMP
State ⇒ Unconfirmed
Got such error message:
No pgpPublicKey entry found for test@tmv.gov.tw
P.S View and Details in "PGP Public Keyring" work fine.
David