The ApplicationServiceGeneric search methods try to fetch (offset + maxResults) results from each directory, but they will stop querying the underlying directories when then have maxResults results. They should only return when they have at least offset + maxResults.
For example, querying with a start index of 10 and max results of 5, if the first directory contained six users we would decide we had more than five, never query the second directory, but then throw those six users away because they come before the start index.
This is only an issue when paging. Queries for ALL_RESULTS are unaffected.
CWD-2748 fixed this for searchUsers, but it's still an issue for searchGroups, searchDirectGroupRelationships and searchNestedGroupRelationships.
[CWD-2807] ApplicationServiceGeneric search methods may return too few results when paging
Workflow | Original: Simplified Crowd Development Workflow v2 - restricted [ 1510267 ] | New: JAC Bug Workflow v3 [ 3365024 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Workflow | Original: Simplified Crowd Development Workflow v2 [ 1393354 ] | New: Simplified Crowd Development Workflow v2 - restricted [ 1510267 ] |
Workflow | Original: Crowd Development Workflow v2 [ 378967 ] | New: Simplified Crowd Development Workflow v2 [ 1393354 ] |
Remote Link | New: This issue links to "Page (Extranet)" [ 101878 ] |
Fix Version/s | New: 2.3.8 [ 26207 ] | |
Fix Version/s | New: 2.4.3 [ 26208 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Technical Review [ 10028 ] | New: Resolved [ 5 ] |
Status | Original: In Progress [ 3 ] | New: Technical Review [ 10028 ] |
Description | Original: The ApplicationServiceGeneric search methods try to fetch (offset + maxResults) results from the underlying directories, but they may return early when then have {{maxResults}} results. They should only return when they have at least the expected total. |
New:
The ApplicationServiceGeneric search methods try to fetch (offset + maxResults) results from each directory, but they will stop querying the underlying directories when then have {{maxResults}} results. They should only return when they have at least offset + maxResults.
For example, querying with a start index of 10 and max results of 5, if the first directory contained six users we would decide we had more than five, never query the second directory, but then throw those six users away because they come before the start index. This is only an issue when paging. Queries for ALL_RESULTS are unaffected. |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |