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

Created on 30 Apr 2020  ·  5Comments  ·  Source: nextcloud/server

(This is mostly a reminder for me)

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. Have LDAP configured and PHP up to 7.2 (old API)
  2. Go to users page
  3. Do a search

Expected behaviour

  • Looked for user is being shown once

Actual behaviour

  • Looked for user is being shown infinitely
1. to develop bug ldap regression

Most helpful comment

Just hit this issue on a fresh install of 19.0.0 and can confirm https://github.com/nextcloud/server/pull/21108 fixes the issue for me.

Thanks @blizzz

All 5 comments

Reproducible also on CLI (and only with search term):

╚> php occ ldap:search 'j' --limit=2 --offset=2
Joyce, George (person_133173) (person_133173)

╚> php occ ldap:search 'j' --limit=2 --offset=12
Joyce, George (person_133173) (person_133173)

╚> php occ ldap:search '' --limit=2 --offset=0
Krista, Love (person_13317) (person_13317)
Victoria, Kennedy (person_133170) (person_133170)

╚> php occ ldap:search '' --limit=2 --offset=20
Ida, Mason (person_133172) (person_133172)
Joyce, George (person_133173) (person_133173)

Same problem on latest Nextcloud 19 (clean v.18 install + upgrade to 19) on PHP 7.4.
User directory from Windows Server 2019 AD

image

Same here, 19.0.0 clean install with php 7.4 and FreeIPA as backend.
Also navigating to users -> everybody gives an infinite loop of the same users.

Indeed. But also fixed with the same fix, coming with 19.0.1:

Screenshot_20200604_162914

Just hit this issue on a fresh install of 19.0.0 and can confirm https://github.com/nextcloud/server/pull/21108 fixes the issue for me.

Thanks @blizzz

Was this page helpful?
0 / 5 - 0 ratings