Summary: | KMail doesn't let me manually select a non verified PGP key which doesn't contains the receivers address | ||
---|---|---|---|
Product: | [Applications] kmail2 | Reporter: | kolAflash <kolAflash> |
Component: | composer | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | major | ||
Priority: | NOR | ||
Version: | 4.12 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kdepim/5cc79e9246caee7875bd640bd6264476bb7330ce | Version Fixed In: | 4.12.2 |
Sentry Crash Report: | |||
Attachments: | Fix for KDE bug 328311. Should work at least for KDE 4.11.4 and 4.12.1. |
Description
kolAflash
2013-12-02 04:06:44 UTC
Same bug appears if I have to manually select a key, because I got multiple keys for the same email address in my key-chain. Did anybody else experience this bug? Please tell! For my initial bug report I used KDE 4.11.2 Later I got regular updates to 4.11.3 and then 4.11.4 from my distribution (openSUSE 13.1). Now I manually updated to 4.12.1 using this repository: http://download.opensuse.org/repositories/KDE:/Release:/412/openSUSE_13.1/ Unfortunately none of this updates fixed the bug :-/ Did some debugging with KDbg. May this be the reason? kdepim-4.12.1/messagecomposer/composer/keyresolver.cpp:1625 Method: std::vector<GpgME::Key> Kleo::KeyResolver::selectKeys( const QString &person, const QString &msg, const std::vector<GpgME::Key> &selectedKeys ) const ======== keys.erase( std::remove_if( keys.begin(), keys.end(), NotValidTrustedEncryptionKey ), // -= trusted? keys.end() ); ======== Maybe it should be like this instead? ======== keys.erase( std::remove_if( keys.begin(), keys.end(), NotValidTrustedEncryptionKey ), // -= trusted? keys.end() ); ======== Because the method is called from kdepim-4.12.1/messagecomposer/composer/keyresolver.cpp:1696 ======== return trustedOrConfirmed( selectKeys(... ======== The method "trustedOrConfirmed" already checks if the key is trusted and may ask the user what to do. But if "selectKeys" erases the key this won't happen. Created attachment 84676 [details] Fix for KDE bug 328311. Should work at least for KDE 4.11.4 and 4.12.1. My first KDE patch. Yeeeehaaa! :-) Please test it and if OK, commit! I'll be here if you've got any questions. Git commit 5cc79e9246caee7875bd640bd6264476bb7330ce by Sandro Knauß. Committed on 22/01/2014 at 18:08. Pushed by knauss into branch 'KDE/4.12'. make it possible to manually select untrusted PGP keys Fixes a bug in method "selectKeys", when manually selecting one or more keys which are not marked as trusted. Method "selectKeys" is only called from method "getEncryptionKeys" in lines: 1656, 1696 (patch written by kolAflash <kolAflash@kolahilft.de>, sponserd by me) FIXED-IN: 4.12.2 REVIEW: 115182 M +1 -1 messagecomposer/composer/keyresolver.cpp http://commits.kde.org/kdepim/5cc79e9246caee7875bd640bd6264476bb7330ce |