Bug 494978 - KleverNotes doesn't handle naming any note/folder/notebook with forward slashes correctly
Summary: KleverNotes doesn't handle naming any note/folder/notebook with forward slash...
Status: RESOLVED FIXED
Alias: None
Product: KleverNotes
Classification: Applications
Component: UI (other bugs)
Version First Reported In: 1.1.0
Platform: Flatpak Linux
: NOR normal (vote)
Target Milestone: ---
Assignee: Louis Schul
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-18 09:08 UTC by Ali
Modified: 2025-02-27 08:55 UTC (History)
0 users

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 Ali 2024-10-18 09:08:48 UTC
SUMMARY
Using forward slashes when naming a note, notebook, and folder results in multiple directories being made (ie. creating a note named test/example/demonstration results in a folder named demonstration within another folder named example, within the main note directory being named test. This also ends up confusing KleverNotes as doing this causes it cycle between names for the affected directory.

STEPS TO REPRODUCE
1. Create a note/notebook/folder
2. Use forward slashes in name
3. Open storage directory in Dolphin and see folders made
4. Open and close KleverNotes to see name of the affected thing randomly change (might happen only once)

OBSERVED RESULT
Multiple unnecessary directories are created, KleverNotes confuses name of the affected thing 
Also can't name the notes/notebooks/folders with forward slashes.
EXPECTED RESULT
KleverNotes should not allow this to happen and either inform the user or give the user a prompt to substitute the forward slashes for back slashes. (Similar to how Dolphin does it but without letting the user do it anyway as it serves no purpose in KleverNotes) 

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 6.2.1
KDE Frameworks Version: 6.7.0
Qt Version: 6.8.0
Kernel Version: 6.11.3-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-6267U CPU @ 2.90GHz
Memory: 7.6 GiB of RAM
Graphics Processor: Mesa Intel® Iris® Graphics 550

KleverNotes 1.1.0
KF6.7.0
Qt6.7.3

ADDITIONAL INFORMATION
Comment 1 Louis Schul 2024-10-18 09:55:19 UTC
Someone pointed that to me yesterday.

This should be resolve when I rework the Treeview, see: https://invent.kde.org/office/klevernotes/-/issues/20

In the meantime, you are right, I will add an error message for the user. Thanks for the idea.
Comment 2 Louis Schul 2024-10-18 14:24:12 UTC
An error message has been added: https://invent.kde.org/office/klevernotes/-/merge_requests/124

I'll keep this open for now, I'll consider this bug fixed once I edit the treeview.
Comment 3 Louis Schul 2025-02-27 08:55:48 UTC
Solved by: https://invent.kde.org/office/klevernotes/-/merge_requests/138

Thank you for your report. :)