Incorrect number of roles returned when limit is specified

Steps to reproduce

Steps to reproduce:

1. Endpoint /admin-ng/resources/ROLES.json?limit=20&offset=0

calls RolesListProvider which calls RoleDirectoryService

Actual Results:

You get back 8 roles.

Expected Results:

You get back the number of roles specified by limit.

The source of this problem is that multiple RoleProviders were returning the same roles, so the set of roles is larger than expected. The limit/offset is applied to the larger set, but this is then reduced when the roles are added to a map on role name.

Activity

Show:
Stephen Marquard
January 23, 2017, 8:44 PM

Looking at this issue as part of and

Stephen Marquard
January 24, 2017, 7:43 PM
Fixed and reviewed

Assignee

Stephen Marquard

Reporter

Stephen Marquard

Severity

Incorrectly Functioning With Workaround

Tags (folksonomy)

None

Components

Fix versions

Affects versions

Priority

Major