{"action":"created","issue":{"url":"https://api.github.com/repos/nextcloud/server/issues/8454","repository_url":"https://api.github.com/repos/nextcloud/server","labels_url":"https://api.github.com/repos/nextcloud/server/issues/8454/labels{/name}","comments_url":"https://api.github.com/repos/nextcloud/server/issues/8454/comments","events_url":"https://api.github.com/repos/nextcloud/server/issues/8454/events","html_url":"https://github.com/nextcloud/server/issues/8454","id":298597301,"number":8454,"title":"Sharees endpoint doesn't respect limit for ldap users","user":{"login":"juliushaertl","id":3404133,"avatar_url":"https://avatars0.githubusercontent.com/u/3404133?v=4","gravatar_id":"","url":"https://api.github.com/users/juliushaertl","html_url":"https://github.com/juliushaertl","followers_url":"https://api.github.com/users/juliushaertl/followers","following_url":"https://api.github.com/users/juliushaertl/following{/other_user}","gists_url":"https://api.github.com/users/juliushaertl/gists{/gist_id}","starred_url":"https://api.github.com/users/juliushaertl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliushaertl/subscriptions","organizations_url":"https://api.github.com/users/juliushaertl/orgs","repos_url":"https://api.github.com/users/juliushaertl/repos","events_url":"https://api.github.com/users/juliushaertl/events{/privacy}","received_events_url":"https://api.github.com/users/juliushaertl/received_events","type":"User","site_admin":false},"labels":[{"id":386379231,"url":"https://api.github.com/repos/nextcloud/server/labels/bug","name":"bug","color":"ee0701","default":true},{"id":389032633,"url":"https://api.github.com/repos/nextcloud/server/labels/feature:%20ldap","name":"feature: ldap","color":"c2e0c6","default":false},{"id":389031994,"url":"https://api.github.com/repos/nextcloud/server/labels/feature:%20sharing","name":"feature: sharing","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-02-20T13:40:38Z","updated_at":"2018-02-22T08:24:16Z","closed_at":null,"author_association":"MEMBER","body":"### Steps to reproduce\r\n1. Setup ldap\r\n2. Query the files_sharing endpoint with a user limit of 1:\r\n`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'`\r\n\r\n### Expected behaviour\r\nThe result set in ocs.data.users should only contain 1 entry\r\n\r\n### Actual behaviour\r\nThe result set in ocs.data.users contains all ldap users\r\n\r\n\r\nCame up in https://github.com/nextcloud/deck/issues/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.\r\n\r\n@nextcloud/sharing @nextcloud/ldap \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/nextcloud/server/issues/comments/367602136","html_url":"https://github.com/nextcloud/server/issues/8454#issuecomment-367602136","issue_url":"https://api.github.com/repos/nextcloud/server/issues/8454","id":367602136,"user":{"login":"juliushaertl","id":3404133,"avatar_url":"https://avatars0.githubusercontent.com/u/3404133?v=4","gravatar_id":"","url":"https://api.github.com/users/juliushaertl","html_url":"https://github.com/juliushaertl","followers_url":"https://api.github.com/users/juliushaertl/followers","following_url":"https://api.github.com/users/juliushaertl/following{/other_user}","gists_url":"https://api.github.com/users/juliushaertl/gists{/gist_id}","starred_url":"https://api.github.com/users/juliushaertl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliushaertl/subscriptions","organizations_url":"https://api.github.com/users/juliushaertl/orgs","repos_url":"https://api.github.com/users/juliushaertl/repos","events_url":"https://api.github.com/users/juliushaertl/events{/privacy}","received_events_url":"https://api.github.com/users/juliushaertl/received_events","type":"User","site_admin":false},"created_at":"2018-02-22T08:24:16Z","updated_at":"2018-02-22T08:24:16Z","author_association":"MEMBER","body":"It is happening on master for me. I'll reproduce that again and try to provide proper logs."}}
{"actor":{"display_login":"juliushaertl"}}