fix(vfolder): fallback system role creation on invitation acceptance#11886
Open
wali-reheman wants to merge 1 commit into
Open
fix(vfolder): fallback system role creation on invitation acceptance#11886wali-reheman wants to merge 1 commit into
wali-reheman wants to merge 1 commit into
Conversation
When a user without a SYSTEM role accepts a vfolder invitation, _get_user_role_id() now creates one as a fallback inside the existing write transaction, instead of raising ObjectNotFound and rolling back. This allows invitation acceptance to succeed for users (e.g. SSO-created accounts) who may not yet have an RBAC system role. Fixes backend.ai issue lablup#11885 (BA-6253).
|
|
HyeockJinKim
requested changes
Jun 1, 2026
|
This PR has had no activity for 14 days and has been marked as stale. It will be closed on 2026-07-02 (in 14 days) if no further activity occurs. Push a commit or leave a comment to keep it open. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When accepting a vfolder invitation for a user without a SYSTEM role, the lookup now creates one as a fallback inside the transaction instead of failing with ObjectNotFound. This handles SSO-created accounts that may not have an RBAC role yet. Includes unit tests for both the existing-role path and the fallback-creation path.