Skip to content

simplify getGroups, fixing wrong chunking logic - #21123

Merged
rullzer merged 1 commit into
masterfrom
fix/noid/fix-retrieval-of-groups
May 27, 2020
Merged

simplify getGroups, fixing wrong chunking logic#21123
rullzer merged 1 commit into
masterfrom
fix/noid/fix-retrieval-of-groups

Conversation

@blizzz

Copy link
Copy Markdown
Member

The code of getGroups was replaced by getGroupsChunks which was then removed itself.

For some reasons we did our pagination logic there on top, basically sabotaging propering pagination logic as we have it in the search methods in the Access class. And in a buggy way. In a case with over 500 groups, only 498 or so were reported. Because two invalid ones where discarded, the old code said: "oh, there is nothing more to fetch", as the received number was less than the requested number of items.

That was containing code back from 2012 that probably just was not updated so far – infamous bitrot.

pagination is taken care of properly in the search logic in Access class
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
@blizzz

Copy link
Copy Markdown
MemberAuthor

/backport to stable19

@blizzz

Copy link
Copy Markdown
MemberAuthor

/backport to stable18

@blizzz

Copy link
Copy Markdown
MemberAuthor

/backport to stable17

@juliusknorrjuliusknorr added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels May 27, 2020
@rullzer
rullzer merged commit 778ef84 into masterMay 27, 2020
@rullzer
rullzer deleted the fix/noid/fix-retrieval-of-groups branch May 27, 2020 17:36
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishbugfeature: ldap

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@blizzz@ChristophWurst@juliusknorr@rullzer