dotCMS / dotCMS/core

Content Search: pagination state causes "no results" when second search returns fewer results than current page

Open
#36,774 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

OKR : Customer Support Team : Maintenance
Dominant language
Java
Stars
970
Forks
486
Avg merge
3d 33m
Merged PRs (30d)
170

Description

Problem Statement

Content > Search pagination retains the previous search's page number when a new search is run, causing a false "no results found" state if the new search returns fewer results than the retained page would contain.

Steps to Reproduce

https://drive.google.com/file/d/1znv2sSMC6P5JC5XD4GrYaIStIQ6v77q6/view?usp=drive_link

Steps to Reproduce

  1. Under Content > Search, run a search that returns multiple pages of results.
  2. Navigate to page 5 (or any page after page 1).
  3. Run a second search that returns some results, but fewer than a full page.
Acceptance Criteria

Expected: Results reset to page 1, showing the new search's results.
Actual: No results are shown, even though matches exist.

dotCMS Version

26.07.06-3

Severity

Medium - Some functionality impacted

Links

https://helpdesk.dotcms.com/a/tickets/38535

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 in the Content > Search interface and reproduce the issue by searching, moving to page 5, then submitting a query with fewer results. Trace where the pagination state is retained or updated when the query changes. Done means a new search always displays from page 1 and shows its available matches instead of a false empty state.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
66/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.