Skip to content

Domains and users page: Search for users/groups only works on page 1 #7612

@mrmarkuz

Description

@mrmarkuz

When there are more than 10 users/groups and the items per page is set to 10 and you're not on page 1, the search doesn't work.

Steps to reproduce

  • Create a user domain, no matter if samba or openldap
  • Create at least 11 users/groups

Adapt samba1 to openldap1 if openldap was used.

Create 11 users:

for i in {1..11}
do
    api-cli run module/samba1/add-user --data - <<EOF
    {
        "user": "username$i",
        "display_name": "Username $i",
        "password": "`tr -dc 'A-Za-z0-9' </dev/urandom | head -c 13; echo '!'`",
        "locked": false
    }
EOF
done

Create 11 groups:

for i in {1..11}
do
    api-cli run module/samba1/add-group --data - <<EOF
    {
        "group": "groupname$i",
        "users": []
    }
EOF
done
  • On the users/group page go to page 2 and search for a user/group

Expected behavior

The searched user/group is shown

Actual behavior

The searched user/group isn't shown

Image

Components

Core 3.10.0

See also

https://community.nethserver.org/t/search-in-the-group-list-does-not-work-properly/26279


Thanks to Yummiweb

Metadata

Metadata

Assignees

Labels

verifiedAll test cases were verified successfully

Type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions