Skip to content

Sharees endpoint doesn't respect limit for ldap users #8454

Description

@juliusknorr

Steps to reproduce

  1. Setup ldap
  2. Query the files_sharing endpoint with a user limit of 1:
    curl 'http://admin:admin@localhost:8140/ocs/v2.php/apps/files_sharing/api/v1/sharees?format=json&search=&perPage=1&itemType=emails' -H 'OCS-APIREQUEST: true'

Expected behaviour

The result set in ocs.data.users should only contain 1 entry

Actual behaviour

The result set in ocs.data.users contains all ldap users

Came up in nextcloud/deck#422 but I can reproduce that in the files app, where searching for a user to share with takes ages with 1000 users in ldap.

@nextcloud/sharing @nextcloud/ldap

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions