Bug 502402 - Notes disappeared after trying to move folders
Summary: Notes disappeared after trying to move folders
Status: REPORTED
Alias: None
Product: KleverNotes
Classification: Applications
Component: Settings (show other bugs)
Version: 1.2.2
Platform: Flatpak Linux
: NOR major (vote)
Target Milestone: ---
Assignee: Louis Schul
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-04 12:42 UTC by farid
Modified: 2025-04-06 13:52 UTC (History)
0 users

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


Attachments
Error message when starting the app (22.24 KB, image/png)
2025-04-04 12:42 UTC, farid
Details

Note You need to log in before you can comment on or make changes to this bug.
Description farid 2025-04-04 12:42:38 UTC
Created attachment 179999 [details]
Error message when starting the app

SUMMARY
Notes have disappeared after restarting probably caused after trying to unsuccessfully move a note to a root folder. This happened because somehow the storage path changed. I have managed to recover the notes by manually pointing to the correct path in the settings.
Comment 1 Louis Schul 2025-04-05 14:45:17 UTC
> after trying to unsuccessfully move a note to a root folder.
> This happened because somehow the storage path changed. 

How did you try to move the note and what was the result (nothing, error message, crash, ...) ? 
Was it a problem with the KleverNotes "Move Dialog" or was it a "manual operation" ?

What was the resulting storage path ?
Was it something like :
- a relative path to your original stoage ? 
- a full path to an unexisting folder 
- something else ?
Comment 2 farid 2025-04-05 18:33:47 UTC
(In reply to Louis Schul from comment #1)
> 
> How did you try to move the note and what was the result (nothing, error
> message, crash, ...) ? 
> Was it a problem with the KleverNotes "Move Dialog" or was it a "manual
> operation" ?

I was trying to move the note to a root by using the "move to strorage root" or by trying to select something from the empty dropdown. In the end I didn't do it because it was confusing. After restarting they disappeared. 

> 
> What was the resulting storage path ?
> Was it something like :
> - a relative path to your original stoage ? 
> - a full path to an unexisting folder 
> - something else ?

The program somehow created an empty folder here: /run/user/1000/doc/60132296/ 

I recovered the notes by pointing to the right folder: /run/user/1000/doc/33e150d2/klevernotes/
Comment 3 Louis Schul 2025-04-06 08:34:09 UTC
> In the end I didn't do it because it was confusing.

Just to be sure : 
You cancelled the operation by clicking on the cancel button or outside the dialog ? You did not move anything ?

> The program somehow created an empty folder here:
> /run/user/1000/doc/60132296/ 

I can maybe see how a folder was created. 
The weird thing is the storage path being modified... The only place were the storage path is changed is inside the storage dialog (what you use to point to the correct one).

Thank you for all the info. I will investigate, but this one seems hard to replicate !
Comment 4 farid 2025-04-06 13:52:00 UTC
(In reply to Louis Schul from comment #3)
> > In the end I didn't do it because it was confusing.
> 
> Just to be sure : 
> You cancelled the operation by clicking on the cancel button or outside the
> dialog ? You did not move anything ?
> 

Yeah, I did not move anything...

> > The program somehow created an empty folder here:
> > /run/user/1000/doc/60132296/ 
> 
> I can maybe see how a folder was created. 
> The weird thing is the storage path being modified... The only place were
> the storage path is changed is inside the storage dialog (what you use to
> point to the correct one).
> 
> Thank you for all the info. I will investigate, but this one seems hard to
> replicate !

It is indeed a difficult one to replicate specially since I don't have any useful info. Do close it if you like though, I'll keep my eye open on this...