Skip to content

Commit

Permalink
Merge pull request #616 from nextcloud/backport/610/stable-2.6
Browse files Browse the repository at this point in the history
[stable-2.6] Do not query lookup server
  • Loading branch information
tobiasKaminsky authored May 5, 2021
2 parents c5a621a + 472f861 commit 5d25c88
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,12 @@ public class GetShareesRemoteOperation extends RemoteOperation {
private static final String PARAM_SEARCH = "search";
private static final String PARAM_PAGE = "page"; // default = 1
private static final String PARAM_PER_PAGE = "perPage"; // default = 200
private static final String PARAM_LOOKUP = "lookup";

// Arguments - constant values
private static final String VALUE_FORMAT = "json";
private static final String VALUE_ITEM_TYPE = "file"; // to get the server search for users / groups
private static final String VALUE_FALSE = "false";


// JSON Node names
Expand Down Expand Up @@ -132,6 +134,7 @@ protected RemoteOperationResult run(OwnCloudClient client) {
uriBuilder.appendQueryParameter(PARAM_SEARCH, searchString);
uriBuilder.appendQueryParameter(PARAM_PAGE, String.valueOf(page));
uriBuilder.appendQueryParameter(PARAM_PER_PAGE, String.valueOf(perPage));
uriBuilder.appendQueryParameter(PARAM_LOOKUP, VALUE_FALSE);

// Get Method
get = new GetMethod(uriBuilder.build().toString());
Expand Down

0 comments on commit 5d25c88

Please sign in to comment.