From fc8380dba1772ea4dedf7f1a917ea87e45610370 Mon Sep 17 00:00:00 2001 From: Fahim Salam Chowdhury Date: Tue, 4 Jul 2023 15:10:15 +0600 Subject: [PATCH] 6839-Downgrade_ocs_api_version issue: https://gitlab.e.foundation/e/backlog/-/issues/6839 When retrieving user capabilities, for some accounts /ocs/v2.php/cloud returns 404. As we also support /ocs/v1.php/cloud, downgrading the api version seems like resolve the issue. --- .../it/niedermann/owncloud/notes/persistence/ApiProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/it/niedermann/owncloud/notes/persistence/ApiProvider.java b/app/src/main/java/it/niedermann/owncloud/notes/persistence/ApiProvider.java index 0cab114ee..1199e6e1c 100644 --- a/app/src/main/java/it/niedermann/owncloud/notes/persistence/ApiProvider.java +++ b/app/src/main/java/it/niedermann/owncloud/notes/persistence/ApiProvider.java @@ -38,7 +38,7 @@ public class ApiProvider { private static final ApiProvider INSTANCE = new ApiProvider(); - private static final String API_ENDPOINT_OCS = "/ocs/v2.php/cloud/"; + private static final String API_ENDPOINT_OCS = "/ocs/v1.php/cloud/"; private static final Map API_CACHE = new ConcurrentHashMap<>(); -- GitLab