Bug 406537

Summary: Encrypted file cannot be saved as unencrypted
Product: [Applications] kmymoney Reporter: Thomas Baumgart <tbaumgart>
Component: fileAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 5.0.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.0.4
Sentry Crash Report:

Description Thomas Baumgart 2019-04-14 17:33:41 UTC
SUMMARY
If a file is stored encrypted and later saved as unencrypted, the encryption returns if the file is saved again.

STEPS TO REPRODUCE
1. Open encrypted file
2. "Save as" under different name w/o an encryption key
3. Restart application
4. Open unencrypted file (if it is not opened as last file used)
5. Make a modification
6. Save file

OBSERVED RESULT
File is encrypted again

EXPECTED RESULT
File is not encrypted
Comment 1 Thomas Baumgart 2019-04-14 17:36:54 UTC
Git commit a366b51e40a6f7a4d9d1b06b07e677892313c60e by Thomas Baumgart.
Committed on 14/04/2019 at 17:36.
Pushed by tbaumgart into branch '5.0'.

Do not re-encrypt file

This change allows to remove encryption permanently.
FIXED-IN: 5.0.4

M  +9    -0    kmymoney/plugins/xml/xmlstorage.cpp

https://commits.kde.org/kmymoney/a366b51e40a6f7a4d9d1b06b07e677892313c60e