Bug 248833

Summary: Adding UID fails if smartcard is used
Product: [Applications] kgpg Reporter: Stanislav Sidorenko <stanislav>
Component: generalAssignee: Rolf Eike Beer <kde>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 4.5.1
Sentry Crash Report:
Attachments: handle prompt when adding uids

Description Stanislav Sidorenko 2010-08-23 19:34:40 UTC
Version:           unspecified (using Devel) 
OS:                Linux

It is not possible to add new UID if secret key is stored on a smartcard.


Reproducible: Always

Steps to Reproduce:
1. Right-click on a key, click add UID
2. Fill data to fields and press OK.
3. Enter smartcard PIN requested by pinentry

Actual Results:  
UID is not added

Expected Results:  
new UID is to be added

status messages log:

KGpgTransactionPrivate::slotReadReady: "[GNUPG:] GET_LINE keygen.name"
kgpg(13178) KGpgTransactionPrivate::write: "Test3
"
kgpg(13178) KGpgTransactionPrivate::slotReadReady: "[GNUPG:] GOT_IT"
kgpg(13178) KGpgTransactionPrivate::slotReadReady: "[GNUPG:] GET_LINE keygen.email"
kgpg(13178) KGpgTransactionPrivate::write: "Test3@Test3_____.com
"
kgpg(13178) KGpgTransactionPrivate::slotReadReady: "[GNUPG:] GOT_IT"
kgpg(13178) KGpgTransactionPrivate::slotReadReady: "[GNUPG:] GET_LINE keygen.comment"
kgpg(13178) KGpgTransactionPrivate::write: "
"
kgpg(13178) KGpgTransactionPrivate::slotReadReady: "[GNUPG:] GOT_IT"
kgpg(13178) KGpgTransactionPrivate::slotReadReady: "[GNUPG:] CARDCTRL 3 "
kgpg(13178) KGpgTransactionPrivate::slotReadReady: "[GNUPG:] GET_LINE keyedit.prompt"
kgpg(13178) KGpgTransactionPrivate::write: "quit
"
kgpg(13178) KGpgTransactionPrivate::slotReadReady: "[GNUPG:] GOT_IT"
kgpg(13178) KGpgTransactionPrivate::slotReadReady: "[GNUPG:] GET_BOOL keyedit.save.okay"
kgpg(13178) KGpgTransactionPrivate::slotReadReady: unexpected GnuPG request "[GNUPG:] GET_BOOL keyedit.save.okay"
kgpg(13178) KGpgTransactionPrivate::write: "quit
"
kgpg(13178) KGpgTransactionPrivate::slotReadReady: "[GNUPG:] GOT_IT"
Comment 1 Rolf Eike Beer 2010-08-23 21:29:56 UTC
Created attachment 50871 [details]
handle prompt when adding uids
Comment 2 Stanislav Sidorenko 2010-08-23 21:49:35 UTC
Works correctly with this patch.
Comment 3 Rolf Eike Beer 2010-08-23 22:03:23 UTC
SVN commit 1167158 by dakon:

handle prompt when adding UIDs

This fixes adding uids when the key is stored on a smartcard.

CCBUG:248833

 M  +2 -0      kgpgadduid.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1167158
Comment 4 Rolf Eike Beer 2010-08-23 22:17:34 UTC
SVN commit 1167162 by dakon:

backport the fixes to allow KGpg working with keys stored on smartcards

backport of 1167158, 1167159 and 1167161

BUGS:139965,248598,248833


 M  +2 -0      kgpgadduid.cpp  
 M  +3 -5      kgpgsignkey.cpp  
 M  +2 -0      kgpgtransaction.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1167162