Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-2807

ApplicationServiceGeneric search methods may return too few results when paging

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 2.3.8, 2.4.3, 2.5
    • None
    • None
    • None

      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

            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Simplified Crowd Development Workflow v2 - restricted [ 1510267 ] New: JAC Bug Workflow v3 [ 3365024 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: Simplified Crowd Development Workflow v2 [ 1393354 ] New: Simplified Crowd Development Workflow v2 - restricted [ 1510267 ]
            Owen made changes -
            Workflow Original: Crowd Development Workflow v2 [ 378967 ] New: Simplified Crowd Development Workflow v2 [ 1393354 ]
            Ben Humphreys made changes -
            Remote Link New: This issue links to "Page (Extranet)" [ 101878 ]
            joe made changes -
            Link New: This issue is related to CWD-3628 [ CWD-3628 ]
            joe made changes -
            Fix Version/s New: 2.3.8 [ 26207 ]
            Fix Version/s New: 2.4.3 [ 26208 ]
            joe made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Technical Review [ 10028 ] New: Resolved [ 5 ]
            joe made changes -
            Status Original: In Progress [ 3 ] New: Technical Review [ 10028 ]
            joe made changes -
            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.

            CWD-2748 fixed this for {{searchUsers}}, but it's still an issue for {{searchGroups}}, {{searchDirectGroupRelationships}} and {{searchNestedGroupRelationships}}.
            joe made changes -
            Status Original: Open [ 1 ] New: In Progress [ 3 ]

              jwalton joe
              jwalton joe
              Affected customers:
              0 This affects my team
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: