Commit Graph
5 Commits
Author SHA1 Message Date
Roman PerekhodandClaude Opus 4.8 6855942f49 Fix/ocisdev 884 (#12442)
* fix(proxy,graph): do not disable personal space on inconclusive permission check

When a user's role is (re-)assigned, both the proxy (on OIDC login) and the
graph appRoleAssignment handler check the Drives.Create permission to decide
whether to restore or disable the user's personal space. An indeterminate
permission result (transport error or a non-OK status other than
PERMISSION_DENIED) was treated as a denial, which disabled (trashed) the
personal space on a transient settings/gateway fault — with no automatic
re-enable. See OCISDEV-884.

Both call sites now fail closed: on an indeterminate result they leave the
personal space untouched, revert the just-persisted role assignment so the
user is not left in a half-applied state, and surface the error (the proxy
retries on the next login, the graph handler returns 500). Relies on the
matching reva utils.CheckPermission change that surfaces non-authoritative
statuses as an error.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* rebased

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-03 13:22:08 +00:00
Julian Koberg e3a2a148ff fix: [OCISDEV-449] fix user light creation
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2025-10-28 15:56:16 +01:00
Roman Perekhod fb2e048864 feat: [OCISDEV-284] Respect changed user type in OIDC claim (#11684)
* feat: [OCISDEV-284] Respect changed user type in OIDC claim

* check the permission insted of the role
2025-10-02 15:37:48 +02:00
Roman Perekhod c2e75a05a2 feat: [OCISDEV-285] Add Cli to delete personal spaces (#11701)
* Add Cli to delete personal spaces

* fix EnsurePersonalSpace

* Purge disabled spaces 'personal' or 'project'

* bump reva

* update the test
2025-10-02 09:25:26 +02:00
Roman Perekhod 2c7f57865f feat: [OCISDEV-282] user type upgrade/downgrade (#11678)
* feat: [OCISDEV-282] user type upgrade/downgrade
* the storage utils pkg separated
* extended the test coverage
* the failures added to expected
2025-09-26 17:04:01 +02:00