Bug 204971

Summary: Decrypting crashes under windows after importing a large amount of pgp-keys (failed assert "prot!=UnknownProtocol")
Product: [Applications] kleopatra Reporter: Wolfgang Raab <wraab>
Component: generalAssignee: Marc Mutz <mutz>
Status: RESOLVED FIXED    
Severity: crash CC: aheinecke, kdepim-bugs
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Attachments: Screenshot
screenshot of german error message with wron extension

Description Wolfgang Raab 2009-08-24 13:11:52 UTC
Version:           2.0.11 (using Devel)
OS:                MS Windows
Installed from:    Compiled sources

Hi there, Kleopatra crashes when i try to decrypt on encrypted PGP file.
The intersting thing is that it worked bevore and the only thing what i have done is importing a bunch of older pgp-keys. (Most of them from PGP 8.02) System is WinXP Pro. Here is the error message:

Kleopatra: assertion "prot!=UnknownProtocol" failed in void Kleo::Crypto:: DecryptVerifyTask::setProtocol(PgpME::Protocol)
(/tmp/builder-home...../decryptverifytask.cpp:837): Interner Fehler (218103871)
Comment 1 Wolfgang Raab 2009-08-24 14:26:33 UTC
Created attachment 36406 [details]
Screenshot
Comment 2 Wolfgang Raab 2009-08-24 14:27:27 UTC
I found a "workaround" for this problem. It comes from the file extension. I use .txt for this file because i cut it out from an email. Now i gave the file the new extension .pgp to know what is in this file by its name and tried it again - e voila - it worked know. If i give the file another extension (like .crypt) i receive the error like above. I also tried .gpg and this also works.
Comment 3 Andre Heinecke 2013-05-07 15:09:14 UTC
Created attachment 79757 [details]
screenshot of german error message with wron extension
Comment 4 Andre Heinecke 2013-05-07 15:12:07 UTC
I've just tested this with kleopatra from KDE 4.10, which will be part of the next gpg4win release. I get a decent error message in the case you describe and although it would be better if kleopatra would ask which protocol it should use for decryption I'm closing this bug as resolved as this has nothing to do with the original description.