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

ApplicationServiceGeneric.searchUsers() returns too few users for offset queries when there are multiple directories

    XMLWordPrintable

Details

    Description

      From line 648:

      if (!isAllResults && (results.size() >= query.getMaxResults()))
      {
          break;
      }
      

      We should be using totalResults rather than query.getMaxResults() to determine whether, otherwise this will not return results from a second directory if the offset is non-zero and there are more than a single page of results.

      Attachments

        Issue Links

          Activity

            People

              tim@atlassian.com TimP
              tim@atlassian.com TimP
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified