Bug 306820

Summary: Attempt to password-protect basket wipes data
Product: [Applications] basket Reporter: Robert Kratky <kratky>
Component: generalAssignee: Kelvie Wong <kelvie>
Status: REPORTED ---    
Severity: critical CC: JoMaBeMe1, rusty.robot.g
Priority: NOR    
Version First Reported In: 2.0-git   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: "password-protected" basket

Description Robert Kratky 2012-09-15 08:15:48 UTC
When trying to protect a basket with a password, the application just wipes all the notes in that basket.

Checking the data in "~/.kde/share/apps/basket/baskets/basketXX/" reveals that the note files ("noteXX.html") are now empty (zero size). The time stamp corresponds with the time when the "password-protecting" took place.

Reproducible: Always

Steps to Reproduce:
1. create a basket
2. create a note within that basket
3. right-click on the basket name in the list of baskets
4. select "Pasword..."
5. select "Protect basket with a password"
6. a message appears in the basket space: "Password protected basket; Press Unlock to access it."
(Note that no password could be entered throughout the process.)
7. clicking on "Unlock" does nothing
Actual Results:  
All note files are empty.

Expected Results:  
App should ask for a password and then allow the basket to be unlocked. Data should be encrypted or -- at the very least -- not erased.
Comment 1 Robert Kratky 2012-09-15 08:19:30 UTC
Created attachment 73923 [details]
"password-protected" basket

Screenshot of the message that appears in the basket space after the action.
Comment 2 rusty.robot.g 2017-01-23 20:40:47 UTC
If reproducible with 2.11, please specify OS and versions of installed gpg packages
Comment 3 Karmaqtrp 2021-05-08 16:43:02 UTC
Comment on attachment 73923 [details]
"password-protected" basket

url|location bar|field -focus