Bug 486784 - Files deleted from search results area remain in the results but not on disk
Summary: Files deleted from search results area remain in the results but not on disk
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: search (show other bugs)
Version: 24.02.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-08 15:53 UTC by fin-w
Modified: 2024-06-03 05:36 UTC (History)
3 users (show)

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 fin-w 2024-05-08 15:53:16 UTC
SUMMARY
The search function in Dolphin seems to operate with an outdated cache if you delete files from the search area itself.

STEPS TO REPRODUCE
1. Search for files within Dolphin
2. Delete all results
3. Edit search such that it should still match the deleted results, i.e. delete a character from the the search: note that there should not be any results now, because they have been deleted. For me Dolphin correctly displays no results at this point.
4. Re-enter the original search i.e. replace the deleted character

OBSERVED RESULT
The original search results are visible when you search again for the original search string, even though the files no longer exist on disk. Perhaps because the search results are cached in some way? I can click a deleted text file in the results and it opens as a new file in Kate, for example. Exiting the search will not show the deleted files, i.e. Dolphin's normal window is correctly displaying only the files that really exist. HOWEVER, entering the search area again and searching for the same thing will show the previously cached results again! Searches where the search string is a substring of the original search string will also sometimes show the deleted results i.e. "delete_" might show results from an original search "delete_me". Pressing F5 seems to force-refresh the search and it stops displaying deleted files *for that search*, but substrings of the original search may still return the deleted files until F5 is pressed on those results too.

EXPECTED RESULT
Search results / results cache update to follow file additions / deletions on disk.

SOFTWARE/OS VERSIONS
Dolphin 24.02.2
Operating System: Arch Linux 
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.8.9-arch1-1 (64-bit)
Graphics Platform: Wayland
Comment 1 Justin Zobel 2024-06-03 05:17:28 UTC
Can confirm this. Search results must be forcefully F5 refreshed to not show the deleted file.