Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
use correct route
  • Loading branch information
AndyScherzinger committed Oct 18, 2016
commit f567577e1a0433e8a913ed3cf838d9025ef4b63d
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class GetRemoteUserInfoOperation extends RemoteOperation {
private static final String TAG = GetRemoteUserInfoOperation.class.getSimpleName();

// OCS Route
private static final String OCS_ROUTE = "/index.php/ocs/cloud/user?format=json";
private static final String OCS_ROUTE = "/ocs/v1.php/cloud/user?format=json";

// JSON Node names
private static final String NODE_OCS = "ocs";
Expand Down Expand Up @@ -86,7 +86,7 @@ protected RemoteOperationResult run(OwnCloudClient client) {
// Result
result = new RemoteOperationResult(true, status, get.getResponseHeaders());
// Username in result.data
ArrayList<Object> data = new ArrayList<Object>();
ArrayList<Object> data = new ArrayList<>();
data.add(userInfo);
result.setData(data);
} else {
Expand Down