6.0.0-beta1
9/12/25

[#665] Unable delete PGP Public Keyring
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

History
11/09/2004 04:20:21 AM Michael Slusarz Comment #14
State ⇒ Resolved
Reply to this comment
This was actually a turba problem and has been fixed in CVS.
11/05/2004 01:08:37 AM davdi (at) tmv (dot) gov (dot) tw Comment #13 Reply to this comment
Hi Michael:

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




11/04/2004 09:01:38 AM Michael Slusarz Comment #12 Reply to this comment
Check your IMP 'search_sources' preference and make sure you have both 
sources selected.
10/29/2004 07:50:12 AM davdi (at) tmv (dot) gov (dot) tw Comment #11 Reply to this comment
Hi Michael:

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








10/26/2004 06:28:46 AM Michael Slusarz Comment #10 Reply to this comment
What email address is being searched for (i.e. what is the value of 
$address)?  You should verify that this email address truly does not 
exist in the backend.
10/25/2004 08:30:04 AM davdi (at) tmv (dot) gov (dot) tw Comment #9 Reply to this comment
Here are what i modified:

================================================================

             $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
10/25/2004 05:26:44 AM Michael Slusarz Comment #8 Reply to this comment
Try doing a print_r($res) instead.  You are really going to have to do 
most of the debugging work here, BTW, since I can not reproduce this 
at all.
10/13/2004 07:53:03 AM david (at) tmv (dot) gov (dot) tw Comment #7 Reply to this comment
use print_r($ob) but no output generated.If use var_dump instead 
,"NULL" was show up.



David Chang


10/13/2004 06:40:56 AM Michael Slusarz Comment #6 Reply to this comment
My mistake.  You should add the following to line 993 in turba/lib/api.php:



$ob = $res->next();

ADD --> print_r($ob);



If you get output, please mask your username/password and post the output.


10/12/2004 12:55:21 AM david (at) tmv (dot) gov (dot) tw Comment #5 Reply to this comment
Nothing changed after click on "Delete",or any variable($list) were 
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);

                 }

             }

         }

     }


10/11/2004 10:27:54 PM Michael Slusarz Comment #4 Reply to this comment
Can't reproduce this.  I will need you to put in the following in line 
942 of turba/lib/api.php:



print_r($list);



and let me know what that returns.
10/07/2004 12:14:58 AM david (at) tmv (dot) gov (dot) tw Comment #3 Reply to this comment
Yes,the pgppublic key stored in my turba_object was imported from WinPT.



Here is pgppublic field thet belong to that user:

-----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.2.1 (MingW32) 
mQGiBEFjcvARBADr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rjQZDnu7SUSHqIxOd1czMY6YS3xMmsbqBFeWKyI2zeuK 
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-----




10/06/2004 11:59:07 PM Michael Slusarz Comment #2 Reply to this comment
Is anything in the pgpPublicKey field for this user then?  Something 
has to be in there.
10/06/2004 06:55:39 PM Chuck Hagenbuch Assigned to Michael Slusarz
State ⇒ Assigned
 
10/06/2004 07:58:41 AM david (at) tmv (dot) gov (dot) tw Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Unable delete PGP Public Keyring
Queue ⇒ IMP
State ⇒ Unconfirmed
Reply to this comment
While click on IMP-->PGP Option-->PGP Public Keyring-->Delete

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

Saved Queries