From 99e08317461d9404dc1994c3c785b011babe868d Mon Sep 17 00:00:00 2001 From: Fahim Salam Chowdhury Date: Fri, 19 Apr 2024 10:24:21 +0600 Subject: [PATCH] bug: SsoToken key is not matching issue on SsoGrantPermissionViewModel, the token-key is created against the user's userId. But the sso aidl request make the request against the user's accountName. This cause an issue for new users doesn't access the content. This bug only affects new `@murena.io` user. previously granted user won't be affected. With this patch, when the affected users re-request permission, they will can access the data again. issue: https://gitlab.e.foundation/e/os/backlog/-/issues/2160 --- .../owncloud/android/ui/activity/SsoGrantPermissionViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/owncloud/android/ui/activity/SsoGrantPermissionViewModel.kt b/app/src/main/java/com/owncloud/android/ui/activity/SsoGrantPermissionViewModel.kt index 51ecf4cf0..910825e39 100644 --- a/app/src/main/java/com/owncloud/android/ui/activity/SsoGrantPermissionViewModel.kt +++ b/app/src/main/java/com/owncloud/android/ui/activity/SsoGrantPermissionViewModel.kt @@ -91,7 +91,7 @@ class SsoGrantPermissionViewModel @Inject constructor( saveToken( token = token, - accountName = userId, + accountName = account.name, packageName = packageName!! ) -- GitLab