Skip to content

Conversation

@blizzz
Copy link
Member

@blizzz blizzz commented May 25, 2020

fixes #20745

@blizzz
Copy link
Member Author

blizzz commented May 25, 2020

/backport to stable19

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
@blizzz blizzz force-pushed the fix/20745/eor-old-php-api branch from 9a9f830 to 15008a1 Compare May 25, 2020 22:37
Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐘

Copy link
Member

@juliusknorr juliusknorr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good, however I fail to reproduce the issue on my PHP 7.2 instance, so I cannot verify that it actually works 🙈

if (!$this->hasMoreResults()) {
// when the cookie is reset with != 0 offset, there are no further
// results, so stop. This if block is not necessary with new API
// and can be removed with dropping PHP 7.2

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why can we remove this block when we drop PHP 7.2 when this solves an issue that occured on 7.4 (#20745)?
Or is that new API not implemented yet?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I failed to reproduce it on 7.4 for some unknown reason. Ought to double check and remove this part of the comment.

@RenWal
Copy link

RenWal commented Jun 26, 2020

One word of caution for those applying this fix (and maybe something that can be automatically solved in the release):

This bug caused the ScanFiles job to run to an ever-increasing user offset (since it thought there are still more users because the LDAP app ignored the offset). At about offset 39000, this caused a Maximum function nesting level of '256' reached, aborting! since the LDAP paged user search is implemented recursively. (Monitor your log files, folks)

Now, this fix would solve the issue regarding the ever-increasing offset, but the cron job now fails before that can happen because of the recursion error. It's solved by manually forcing the offset to zero.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Repeated user results on search page (LDAP, (not only) PHP 7.2)

7 participants