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.
Looking at this issue as part of and
Code change:
https://bitbucket.org/cilt/opencast/commits/7f80f1a08929683e7d71fa75a0e7ea33d03c2d03
This will form part of the PR for