Bug 416990 - kwallet fails to save edits in individual notes under certain circumstances
Summary: kwallet fails to save edits in individual notes under certain circumstances
Status: REPORTED
Alias: None
Product: frameworks-kwallet
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.66.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Valentin Rusu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-31 16:01 UTC by Hans-Peter Jansen
Modified: 2021-01-22 11:04 UTC (History)
1 user (show)

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


Attachments
xml export before the fact (580 bytes, text/xml)
2020-01-31 16:01 UTC, Hans-Peter Jansen
Details
xml export after the fact (651 bytes, text/xml)
2020-01-31 16:01 UTC, Hans-Peter Jansen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hans-Peter Jansen 2020-01-31 16:01:02 UTC
Created attachment 125574 [details]
xml export before the fact

SUMMARY

When editing individual notes, and the time between editing and pushing the Save button is big enough, the changes are not saved currectly, although kwallet doesn't show any error.

STEPS TO REPRODUCE
1. add a new account
2. run kwalletmanager
3. create a new blowfish based wallet: kdewallet
4. supply password
5. launch wallet manager
6. open passwords tree item
7. right click on item Passwords -> Passwords -> New
8. provide a name: Secret
9. click: Show Contents
10. add: first entry
11. save
12. add: second entry
13. start kontact, add (some dummy) account, important is, that mailtransports is filled
14. wait (restart akonadi, let screenlocker chime in..)
15. save the edited value

OBSERVED RESULT

A one point, probably after akonadi updates the mailbox, Secret is created as a new mailtransports item, which explains why kwalleteditor is not complaining. Needless to say, in a much more crowded kwallet, things get ugly, as it appears as missing such edits. 

EXPECTED RESULT

Saving edited items should work reliably, no matter, what happens between editing and saving. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Leap 15.1
KDE Plasma Version: 5.12.8
KDE Frameworks Version: 5.55.0
Qt Version: 5.9.7

Linux/KDE Plasma: openSUSE Tumbleweed 20200128
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.66.0
Qt Version: 5.14.0

ADDITIONAL INFORMATION

I've observed this behavior since the dawn of kwallets. I use openSUSE Tumbleweed as my primary workspace, but for this record, I used 15.1.

Since I've lost some pretty important notes over time, I developed the habit of selecting the edited part, save it, switch items, and check back for success. Usually, opening an item, editing it, and saving it immediately will be successful, and it feels like the more time between editing and saving lapsed, the higher the probability of failure.

The re-appearance of the item under a new parent item is a new observation for me, while I tried to reproduce the issue in order to create this record. 

I'm attaching two xml exports (with user/passwords edited), that demonstrate the result of the problem.
Comment 1 Hans-Peter Jansen 2020-01-31 16:01:24 UTC
Created attachment 125575 [details]
xml export after the fact
Comment 2 Hans-Peter Jansen 2021-01-22 11:04:01 UTC
Reproduced with:

Operating System: openSUSE Tumbleweed 20210114
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Kernel Version: 5.10.7-2-preempt
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-4790K CPU @ 4.00GHz
Memory: 31.3 GiB of RAM
Graphics Processor: GeForce GTX 760/PCIe/SSE2