Bug 417385 - Saving Encrypted. 100% Data Loss
Summary: Saving Encrypted. 100% Data Loss
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: file (show other bugs)
Version: 5.0.6
Platform: Other Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-10 13:55 UTC by Les Turner
Modified: 2023-07-05 23:18 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Les Turner 2020-02-10 13:55:07 UTC
SUMMARY
KMyMoney Version 5.0.6-8.1; GPG4 Version 3.1.11

STEPS TO REPRODUCE
1. KMyMoney configured for GPG encryption
2. Load money data file and update, then save encrypted file
3. Backup of unmodified data file is save OK but modified fiel is saved with no data.  (Explorer shows 0KB)

OBSERVED RESULT
100% data loss

EXPECTED RESULT
Saved data

SOFTWARE/OS VERSIONS
Windows: Windows 10 Home (version 10.0.18363)
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
This was reported on the KDE forum previously (https://forum.kde.org/viewtopic.php?f=69&t=164342#p427618).  One other Windows user said they had exactly the same problem
Comment 1 Jack 2020-02-10 17:40:09 UTC
I'm pretty sure there are already other bugs filed for this, but I won't have time to check until later.  However, what type of file system are you saving to?  Local hard drive, network share (what server type), dropbox folder, ....?  On some of the non-local destinations, there have been problems related to some of the underlying KDE libraries on Windows.
Comment 2 Andre Heinecke 2020-02-11 07:55:44 UTC
If it's an issue with the encryption / GPGME GnuPG integration I can offer to help with that from the GnuPG side, but as I'm no KMymoney user / dev myself I would need a more qualified bug report.
Comment 3 Les Turner 2020-02-11 11:59:04 UTC
Jack, 
I'm on a PC and all the programs and data are on the one hard disk.  
I did search the bugs database prior to posting but couldn't see any existing bugs that seemed to be related, hence the new post. 
I've been checking how KMyMoney is behaving. As per the bug report it still saves modified data files with no data, but I've found that if I choose to manually 'save as' and give the file a new name it does save the modified file properly.  Unfortunately I don't know enough about the program for this to help me but I hope it may help you?
Comment 4 Jack 2020-02-11 14:20:48 UTC
Les,
Sorry, I initially missed the encryption part.  Have you tried running KMM from command line?  Sometimes error messages or useful warnings are sent to console.  Also, it may be good to continue the discussion on the forum, and bring the final solution back here.  I'll be spinning up a Windows VirtualBox instance soon to do my taxes, so I might be able to test there.
Jack
Comment 5 Les Turner 2020-02-11 19:40:25 UTC
(In reply to Jack from comment #4)
> Les,
> Sorry, I initially missed the encryption part.  Have you tried running KMM
> from command line?  Sometimes error messages or useful warnings are sent to
> console.  Also, it may be good to continue the discussion on the forum, and
> bring the final solution back here.  I'll be spinning up a Windows
> VirtualBox instance soon to do my taxes, so I might be able to test there.
> Jack

Thanks, Jack I've just run KMyMoney from the terminal and got some errors so I'll now continue on the forum and show the errors there
Comment 6 Jack 2023-07-05 23:18:56 UTC
I don't recall the discussion from the forum this much later, but I'll assume this was actually fixed or at least the cause determined.