owncloud/core — pull request #12401 by craigpg (2014-11-24 21:31:48+00:00)
Title: Remove hard coded limit of 15 from getShareWith

With a large directory we're seeing a case where the sharing menu is missing a user we expect to be there. Moreover, this behavior is inconsistent where some users are reliably found while others simply cannot be found it all.

It's our suspicion that the search filter is working just fine and that the real problem is that we're to aggressively truncating the max # of users returned by getShareWith to 15 (hardcoded) and this is simply too small when dealing with a large directory.

Instead of changing the hardcoded value on the server, this PR adds support for a `limit` request parameter and sets the "default" limit in javascript to 200. This default should ideally be pulled from a setting, but let's not consider that until we prove that increasing the limit addresses the problem at hand.

If the `limit` request parameter is not specified, the server reverts to using 15 as the limit.