Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
avoid logging of "Partial search results returned: Sizelimit exceeded…" #12292
When a search request containing a limit is sent against an LDAP server, most will sent the message as in $subject along with the results. The LDAP PHP module triggers this as an PHP error, thus ending up through our error handler in the Nextcloud log.
While not being an error in itself, often admins perceive this as confusing, ending up in several requests not only in this issue tracker. Hence, it would be nice to filter out this message, like this PR does. Fixes #2947
An alternative approach would be to open up our internal error handler from core to app specific proceedings.
How to test:
Before the patch, the mentioned error message would be written. Now it is not supposed to happen anymore.