nextcloud / nextcloud/server

[Bug]: "Search in folder" looses folder filter on search more

Open
#49,672 3 comments 0 reactions 0 assignees View on GitHub

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: ⚠️
Bug description

"Search in folder" shows not all available items

Steps to reproduce
  1. Click to "Unified search"
  2. Click in places > choose "in folder", select a folder from "all files" (e.g. with some jpg, more than 5)
  3. Enter your search entry, e.g. "jpg"
  4. Items will be found, click on "... Load more results"
  5. More results will be loaded - but from everywhere - the search limitation to the folder is gone.
  6. Click on "... Load more results" again
  7. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.