Bug 424545

Summary: Dolphin may list non-existent files after failed attempt of bulk deletion
Product: [Applications] dolphin Reporter: Alexander Shchadilov <alexander.shchadilov>
Component: view-engine: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: bugseforuns, kfm-devel, mail
Priority: NOR    
Version: 20.04.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alexander Shchadilov 2020-07-22 19:49:11 UTC
SUMMARY
If Dolphin is not able to delete some of the selected files due to permissions a subset of selected files is still purged. Files that have been deleted are still shown in a directory until Dolphin is restarted.

STEPS TO REPRODUCE
1. touch possible.txt
2. sudo mkdir impossible && sudo touch ./impossible/file.txt
3. In Dolphin, navigate to Home and use Ctrl+LMB to select multiple items: "impossible" folder and "possible.txt".
4. Press Shift+Del and choose "Delete" in a dialogue box.

OBSERVED RESULT
Error message appears, "possible.txt" is deleted from storage, both "impossible" folder and "possible.txt" are still shown in Home until Dolphin restart.

EXPECTED RESULT
Error message appears, "possible.txt" is deleted from storage and is no longer shown in Home.

SOFTWARE/OS VERSIONS
openSUSE Leap 15.2
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.71.0
Qt Version: 5.12.7
Comment 1 Julian Steinmann 2020-07-26 10:08:47 UTC
Can confirm this behavior using Dolphin 20.11.70 on KDE Neon Unstable.