Bug 509895

Summary: Files and folders in Vaults are inappropriately added to recent items lists
Product: [Plasma] plasmashell Reporter: wuzahman
Component: Vaults widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: major CC: ivan.cukic, nate
Priority: NOR    
Version First Reported In: 5.27.12   
Target Milestone: 1.0   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description wuzahman 2025-09-24 21:01:16 UTC
SUMMARY
When accessing files from inside kde plasma vault a link is created to them in the recent files, same for folders inside the vault. When closing the vault these files change nsme to -0 or -1 but hovering over them in the file manager shows they still link to a file inside of the vault, and while that file is mo longer accessible it's name is saved in the recent files link. This is a confidentiality problem. 

STEPS TO REPRODUCE
1.  Open vault and access files
2.  Close vault
3.  Open recent files folder and find files named -0 -1 etc

OBSERVED RESULT
-0 ( Points to ~/Vaults/vaultname/filename_inside_vault) 

EXPECTED RESULT
Links from recent files should be deleted when vault is locked, or not saved there in the first place 

SOFTWARE/OS VERSIONS
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Ubuntu 24.04
KDE Plasma Version: 5.27.12
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2025-09-24 21:09:27 UTC
I can confirm this on current git master, too.