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

Java API for searching for users that returns cross-directory results, correctly sorted

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 2.3.8, 2.4.3, 2.5
    • 2.4
    • User Management
    • None

      At the moment CrowdService.search() with an entity type of User will query the directories in order and stop once it has enough users to satisfy the maxReturn param. It should return users from all directories properly globally ordered.

      To illustrate, if I had:

      DIR 0: ADAM, BEN, ZACHARY
      DIR 1: CARL, DAVE

      and called CrowdService.search() with a maxReturn of 3 and an offset of 0, I would receive:

      [ADAM, BEN, ZACHARY]

      For my usecase I need to get:

      [ADAM, BEN, CARL]

            [CWD-2749] Java API for searching for users that returns cross-directory results, correctly sorted

            TimP added a comment -

            Changing to bug as this does cause serious problems when querying across multiple directories. You end up with inconsistent ordering in the results, making this useless for paging.

            TimP added a comment - Changing to bug as this does cause serious problems when querying across multiple directories. You end up with inconsistent ordering in the results, making this useless for paging.

              tim@atlassian.com TimP
              tim@atlassian.com TimP
              Affected customers:
              0 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: