Issue 9426 - Paged results return duplicates
Summary: Paged results return duplicates
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: overlays (show other issues)
Version: 2.4.56
Hardware: All All
: --- normal
Target Milestone: 2.5.1
Assignee: OpenLDAP project
URL:
Keywords:
: 8372 (view as issue list)
Depends on:
Blocks:
 
Reported: 2020-12-15 21:16 UTC by Quanah Gibson-Mount
Modified: 2021-02-08 20:03 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Quanah Gibson-Mount 2020-12-15 21:16:43 UTC
When performing a query that matches 744 entries, the number of returned entries varies depending on the page size requested.

For a page size of 300, it returns 767 entries
For a page size of 500, it returns 759 entries

Running the results for sort -u correctly shows 744 unique entries.  So anywhere from 15 to 23 duplicates are returned in the above case.
Comment 1 Quanah Gibson-Mount 2020-12-15 21:19:25 UTC
With a page size of 10, there are 2,042 non-unique entries returned.  After running through sort -u, we have the correct result of 744.
Comment 2 Howard Chu 2020-12-15 22:59:08 UTC
Bug is due to use of dynlist in configuration. Fixed in master.
Comment 3 Quanah Gibson-Mount 2020-12-16 18:44:35 UTC
Commits: 
  • 354e678c 
by Howard Chu at 2020-12-15T22:55:47+00:00 
ITS#9426 dynlist: don't add unexpanded groups at end of search
if pagedResults is in use
Comment 4 Quanah Gibson-Mount 2021-01-25 17:54:19 UTC
*** Issue 8372 has been marked as a duplicate of this issue. ***