When copy-pasting encrypted message from some web page to KGpg editor, it saves rich text insertions. Decryption fails with error message that contains decrypted message. Reproducible: Always Steps to Reproduce: 1. copy-paste encrypted message with rich text insertions to editor 2. try to decrypt it Actual Results: Editor shows encrypted message Expected Results: Decryption fails with error message that contains decrypted message Decryption fails because gpg process fails with code 2, however [i guess] KGpgTextOrFileTransaction::decryptedText() still can output result. Problem is fixed after adding "setAcceptRichText(false);" line to KgpgTextEdit constructor in editor/kgpgeditor.cpp. Of course it should not accept rich text!!!
Would you mind attaching a git patch?
Created attachment 92348 [details] Patch to disable rich text in KgpgTextEdit Sure! But I thought that one-line changes are easier to apply by hand...
Created attachment 92349 [details] Patch to disable rich text in KgpgTextEdit Oops, previous patch did not contain updated copyright years.
Created attachment 92350 [details] Rich text in editor (note line spacing) Here is screenshot demonstrating current version with text from web (with rich text). It will not decrypt well.
This may also be the cause of bug 343063.
Git commit 5230123ab58170aad85e7e3b142aea681ce24dfe by Rolf Eike Beer, on behalf of Denis Pesotsky. Committed on 14/05/2015 at 10:26. Pushed by dakon into branch 'Applications/15.04'. disable rich text in editor When copy-pasting an encrypted message from some web page to KGpg editor, it saves rich text insertions. This breaks the PGP message format, so decryption fails. FIXED-IN:15.04.2 M +1 -0 editor/kgpgtextedit.cpp http://commits.kde.org/kgpg/5230123ab58170aad85e7e3b142aea681ce24dfe