Bug 458828

Summary: Creating or deleting a file in the root folder causes all other items to disappear
Product: [Applications] dolphin Reporter: Paul Worrall <p.r.worrall>
Component: view-engine: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kfm-devel
Priority: NOR    
Version: 22.08.0   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:

Description Paul Worrall 2022-09-07 06:47:27 UTC
STEPS TO REPRODUCE
1. Display the root folder in Dolphin
2. In a terminal type "sudo touch /test"

OBSERVED RESULT
Dolphin refreshes but shows only "test".  All other items disappear

EXPECTED RESULT
Dolphin shows all the folders and files in the root folder, including "test", as it does if you do the same in other folders.

ADDITIONAL INFORMATION
Creating or deleting a file in other folders works as expected
The other items reappear when Dolphin is manually refreshed
All view modes affected
Comment 1 Paul Worrall 2022-12-14 18:07:04 UTC
In 23.03.70 an orange warning is displayed: "Current location changed, '/' is no longer accessible" and the location bar has '/../' which seems to be trying to go above the root folder.
Comment 2 Paul Worrall 2023-09-17 18:57:30 UTC
After reproducing the bug as described, and refreshing Dolphin (F5), subsequent creating and deleting of files using the terminal are shown in Dolphin without clearing the other items.

Dolphin 23.08.1
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10