[Bug]: "Search in folder" looses folder filter on search more
Open
Nobody has claimed this yet.
1. to develop
31-feedback
bug
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- I agree to follow Nextcloud's Code of Conduct.
Bug description
"Search in folder" shows not all available items
Steps to reproduce
- Click to "Unified search"
- Click in places > choose "in folder", select a folder from "all files" (e.g. with some jpg, more than 5)
- Enter your search entry, e.g. "jpg"
- Items will be found, click on "... Load more results"
- More results will be loaded - but from everywhere - the search limitation to the folder is gone.
- Click on "... Load more results" again
- No more results will be shown at some point but the button remains.
Expected behavior
- search should stay restricted to the one folder
- 'Load more results' disappears at some point indicating all results are shown.
Nextcloud Server version
master, stable30
Web server
cloud.nextcloud.com, dev instance with latest master
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in Unified search using a selected folder with more than five matching items, then use “Load more results.” Trace how the folder restriction and pagination behave across successive loads. Done means every loaded result remains within the selected folder and the Load more results control disappears when no results remain.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, php
- Domain
- frontend, search
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100