Bug 451569 - kGPG stuck in key pair creation
Summary: kGPG stuck in key pair creation
Status: RESOLVED FIXED
Alias: None
Product: kgpg
Classification: Applications
Component: general (show other bugs)
Version: 21.12.3
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Rolf Eike Beer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-16 12:00 UTC by David
Modified: 2022-12-14 16:32 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 22.12.1
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David 2022-03-16 12:00:32 UTC
SUMMARY
When creating a new key pair, kGPG does not complete the process. A notification saying "state: requesting passphrase" remains spinning in the notification panel, forever.
Creating the key pair manually via GPG works as normal.


STEPS TO REPRODUCE
1. openg kGPG
2. Generate key Pair
3. Complete the wizard

OBSERVED RESULT
A notification appears, as said above, but the key pair is never generated

EXPECTED RESULT
a year ago, I generated my last keypair and everything worked as intended

Qt Version: 5.15.2
Frameworks Version: 5.91.0
Operating System: Linux 5.15.17-200.fc35.x86_64 x86_64
Windowing System: X11
Distribution: Fedora Linux 35 (Thirty Five)

ADDITIONAL INFORMATION
Comment 1 Rolf Eike Beer 2022-12-14 14:56:28 UTC
*** This bug has been marked as a duplicate of bug 457738 ***
Comment 2 Rolf Eike Beer 2022-12-14 16:32:55 UTC
Git commit c11dadfb46b63563c70e1d33834a549c1de077e7 by Rolf Eike Beer.
Committed on 14/12/2022 at 16:27.
Pushed by dakon into branch 'master'.

close write channel after sending new password when generating new key

This fixes a hang with GnuPG 2.3
Related: bug 457738
FIXED-IN: 22.12.1

M  +6    -0    tests/CMakeLists.txt
A  +74   -0    tests/kgpggeneratekey.cpp     [License: GPL(v2.0+)]
A  +23   -0    tests/kgpggeneratekey.h     [License: GPL(v2.0+)]
A  +20   -0    tests/kgpggeneratekeytesttransaction.cpp     [License: GPL(v2.0+)]
A  +28   -0    tests/kgpggeneratekeytesttransaction.h     [License: GPL(v2.0+)]
M  +3    -2    transactions/kgpggeneratekey.cpp
M  +2    -2    transactions/kgpggeneratekey.h
M  +4    -2    transactions/kgpgtransaction.h

https://invent.kde.org/utilities/kgpg/commit/c11dadfb46b63563c70e1d33834a549c1de077e7