keycloak / keycloak

Open Source Identity and Access Management For Modern Applications and Services
https://www.keycloak.org
Apache License 2.0
23.58k stars 6.78k forks source link

Page number doesn't reset with new search in add member to group dialog #35129

Open JdeKievit opened 2 days ago

JdeKievit commented 2 days ago

Before reporting an issue

Area

admin/ui

Describe the bug

When adding a member to a group, you can search to refine your results. After searching once and going to the second page of results, if you then change the search to something that will return less results than your results per page, you will stay on that page and get informed that there are no search results, even though there are (in the preceding page). image

Version

25.0.6

Regression

Expected behavior

When a search filter is applied after one is already set, reset to page 1

Actual behavior

When a search filter is applied after one is already set and you're on a page later than the last page of the new results list, you're informed there are no search results. The result counter also displays "11-10" (in case of 1 result on a 10 per page setting)

How to Reproduce?

  1. Go to Groups
  2. Select a group
  3. Go to the Members tab
  4. Click Add Member
  5. Search with any term that results more than 1 page of results
  6. Go to the second page or later
  7. Change the search term to something that has less results than could normally be queried at that page and page size

Anything else?

This bug only occurs on changing the search term. When you go to a later page without a search term and then start searching, it behaves as expected by going to page 1

keycloak-github-bot[bot] commented 2 days ago

Thanks for reporting this issue, but as this is reported against an older and unsupported release we are not able to evaluate the issue. Please verify with the nightly build or the latest release.

If the issue can be reproduced in the nightly build or latest release add a comment with additional information, otherwise this issue will be automatically closed within 14 days.