Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter users by group filter failure after max user count improvement #577

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4808,7 +4808,7 @@ private Set<org.wso2.carbon.user.core.common.User> paginateUsers(Set<org.wso2.ca
// If users.length > limit + offset, then return only the users bounded by the offset and the limit.
AbstractSet<org.wso2.carbon.user.core.common.User> usersSorted = new TreeSet<>(
Comparator.comparing(org.wso2.carbon.user.core.common.User::getFullQualifiedUsername));
if (users.size() > limit + offset) {
if (Integer.MAX_VALUE != limit && users.size() > limit + offset) {
usersSorted.addAll(new ArrayList<>(sortedSet).subList(offset - 1, limit + offset - 1));
} else {
// Return all the users from the offset.
Expand Down
Loading