Bug 416439

Summary: Error decrypting older version encrypted files
Product: [Applications] kgpg Reporter: email
Component: generalAssignee: Rolf Eike Beer <kde>
Status: REPORTED ---    
Severity: major    
Priority: NOR    
Version First Reported In: 19.12.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description email 2020-01-19 03:23:52 UTC
SUMMARY
I have some items that were encrypted by an Ubuntu system (Kgpg version 19.04.3), when trying to decrypt them using my arch machine (kgpg version 19.12.1) I get a "Decryption of this file failed"

If I encrypt something with 19.12.1 then the Ubuntu system running 19.04.3 has no problem decrypting.  

It is only the newer package can not decrypt older version.


STEPS TO REPRODUCE
1. encrypt files with 19.04.3
2. try to decrypt with 19.12.1
3. error decrypting

OBSERVED RESULT
error

EXPECTED RESULT
file decrypted

SOFTWARE/OS VERSIONS
Machine running KGgp 19.04.3  
Linux/KDE Plasma: Kubuntu
(available in About System)
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.66
Qt Version: 5.12.4

Machine running KGgp 19.12.1
Linux/KDE Plasma: Arch
(available in About System)
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.66
Qt Version: 5.14.0

ADDITIONAL INFORMATION
Comment 1 Rolf Eike Beer 2020-01-19 16:04:27 UTC
The interesting information is the version of gpg on both machines.

Also test this from the commandline

cat encrypted_file | gpg --decrypt

Does that work?
Comment 2 email 2020-01-19 18:10:27 UTC
Failed to decrypt.  I believe I know what the issue may be.  When the key was imported (into the arch machine 19.12.1) it never prompted for the passphrase used.  Every time I am trying to decrypt something it is never prompting for it either.
Comment 3 Rolf Eike Beer 2020-01-19 18:22:38 UTC
I gpg can't decrypt it on the commandline then there is nothing KGpg can do about it. Please double-check if you have the private key on the newer machine.