Bug 75440

Summary: kgpg exports gpg warnings within public key
Product: [Applications] kgpg Reporter: Andreas Schallenberg <Andreas.Schallenberg>
Component: generalAssignee: bj
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.1   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Andreas Schallenberg 2004-02-17 15:54:10 UTC
Version:           1.1 (using KDE 3.2.0, SuSE)
Compiler:          gcc version 3.3 20030226 (prerelease) (SuSE Linux)
OS:          Linux (i686) release 2.4.20-4GB

Exporting the public key to mail or clipboard does
include error messages from GPG.

Example:

... snip ...
gV+gE4KfuZA7AJ9zXt+c48E7lQSRTfMZrnNN/P938ACfZlmrlo7ybH69DQ+VEblL
ebTMDyy0QUFuZHJlYXMgU2NoYWxsZW5iZgpg: Hinweis: Alte voreingestellte Optionendatei '/home/andreas/.gnupg/options' wurde ignoriert
XJnIChPRkZJUyBlLlYuKSA8QW5kcmVh
cy5TY2hhbGxlbmJlcmdAT0ZGSVMuZGU+iF0EExECAB0FAj2ipJgFCQlmAYAFCwcK
AwQDFQMCAxYCAQIXgAAKCRCilKLsFlabKoBNAKCQCUdVDUANNG4Gs3tFmtjVubGb
... snip ...

The german error message means that an old configuration
file was ignored and does appear as a first startup message
if gpg is started directly from shell.

Exporting the key into a file does work.

GPG version is: "gpg (GnuPG) 1.2.2-rc1-SuSE"
Comment 1 bj 2004-02-18 23:00:01 UTC
I cannot reproduce, but I made a few changes in cvs that should fix it... 
If you could download & compile the KDE_3_2_BRANCH revision from cvs to try, 
it would be nice.

The changes will anyways be included in KDE 3.2.1 due at the beginning of 
march.

I will wait for a confirmation before I close the bug.
regards
Comment 2 Andreas Schallenberg 2004-03-09 15:08:15 UTC
The bug still does occur with KDE 3.2.1 (KGPG 1.1.1).

To reproduce:

Type "touch ~/.gnupg/options" and verify that gpg starts
with a notification:

gpg: Hinweis: Alte voreingestellte Optionendatei '/home/andreas/.gnupg/options' wurde ignoriert
gpg: WARNUNG: Sensible Daten könnten auf Platte ausgelagert werden.
gpg: siehe http://www.gnupg.org/de/faq.html für weitere Informationen
gpg: Auf geht's - Botschaft eintippen ...

The first line is the notification ("hinweis", hint) and it does not occur
if the options file is removed.

Now a key export to clipboard or mail using kgpg should have this
notification included somewhere in the middle of the key.
Comment 3 bj 2004-03-09 20:04:34 UTC
CVS commit by mardelle: 

Finally found stupid error leading to #75440. 
CCMAIL: 75440-done@bugs.kde.org 


  M +2 -2      kgpginterface.cpp   1.105.2.3


--- kdeutils/kgpg/kgpginterface.cpp  #1.105.2.2:1.105.2.3
@@ -1183,5 +1183,5 @@ QString KgpgInterface::getKey(QStringLis
                 *proc << *it;
         QObject::connect(proc, SIGNAL(readReady(KProcIO *)),this, SLOT(slotReadKey(KProcIO *)));
-        proc->start(KProcess::Block,true);
+        proc->start(KProcess::Block,false);
         return keyString;
 }