[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#735567: [kgpg] Adding a new User ID to Key fails, no error message shows up



Package: kgpg
Version: 4:4.8.4-4
Severity: normal
Tags: patch

--- Please enter the report below this line. ---
Dear Maintainer,

Adding a new User ID to an existing Key doesn't work in wheezy's kgpg
version. Everything seems to work fine, but after typing the passphrase
of the key nothing happens. The new ID isn't added but also no error
message occours.

This bug has also been reported upstream to
https://bugs.kde.org/show_bug.cgi?id=313726.
The Upstream Maintainer provided this Patch to fix it:
https://projects.kde.org/projects/kde/kdeutils/kgpg/repository/revisions/792a84c103f685bd12e4f5fcd60cb07c97cd29e6/diff/transactions/kgpgadduid.cpp?format=diff.
You also find this patch in the attachment. I applied this Patch to
wheezy's kgpg source package and built the package on my own. It worked
fine and the bug was fixed.

Greetings,
Martin

--- System information. ---
Architecture: amd64
Kernel:       Linux 3.2.0-4-amd64

Debian Release: 7.3
  500 wheezy-backports mozilla.debian.net
  500 stable-updates  debian.mur.at
  500 stable          security.debian.org
  500 stable          debian.mur.at
  100 wheezy-backports debian.mur.at

--- Package information. ---
Depends               (Version) | Installed
===============================-+-=============
gnupg                           | 1.4.12-7+deb7u3
 OR gnupg2                      | 2.0.19-2+deb7u1
kde-runtime                     | 4:4.8.4-2
kdepim-runtime                  | 4:4.4.11.1-6
libc6                  (>= 2.4) |
libkabc4             (>= 4:4.8) |
libkdecore5          (>= 4:4.8) |
libkdeui5            (>= 4:4.8) |
libkio5              (>= 4:4.8) |
libkpimutils4        (>= 4:4.8) |
libqt4-dbus        (>= 4:4.5.3) |
libqtcore4         (>= 4:4.8.0) |
libqtgui4          (>= 4:4.8.0) |
libsolid4            (>= 4:4.8) |
libstdc++6           (>= 4.1.1) |


Package's Recommends field is empty.

Package's Suggests field is empty.
commit 792a84c103f685bd12e4f5fcd60cb07c97cd29e6
Author: Rolf Eike Beer <kde@opensource.sf-tec.de>
Date:   Wed Oct 30 22:02:27 2013 +0100

    fix adding userids
    
    BUG:313726
    FIXED-IN:4.11.3

diff --git a/transactions/kgpgadduid.cpp b/transactions/kgpgadduid.cpp
index 288a065..543f1af 100644
--- a/transactions/kgpgadduid.cpp
+++ b/transactions/kgpgadduid.cpp
@@ -16,7 +16,7 @@
 #include <kpimutils/email.h>
 
 KGpgAddUid::KGpgAddUid(QObject *parent, const QString &keyid, const QString &name, const QString &email, const QString &comment)
-	: KGpgEditKeyTransaction(parent, keyid, QLatin1String( "adduid" ), false, false)
+	: KGpgEditKeyTransaction(parent, keyid, QLatin1String("adduid"), false, true)
 {
 	setName(name);
 	setEmail(email);
@@ -55,8 +55,6 @@ KGpgAddUid::nextLine(const QString &line)
 		write(m_email.toAscii());
 	} else if (line.contains(QLatin1String( "keygen.comment" ))) {
 		write(m_comment.toUtf8());
-	} else if (line.contains(QLatin1String( "keyedit.prompt" ))) {
-		write("save");
 	} else {
 		return KGpgEditKeyTransaction::nextLine(line);
 	}

Reply to: