You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
handle container access for folder only and container only - #941
Improve advanced access-control editing for containers while preserving independent
folder and contents permissions.
This update makes the access-control modal better reflect the underlying ACL
authorizations and avoids destructive revoke-then-grant behavior when changing
container scopes.
Changes
Group access grants by subject and effective folder/contents scope.
Display Mixed permissions when a subject has different roles across
authorizations instead of incorrectly merging them.
Preserve independently governed folder and contents permissions.
Use planChangeContainerAccess for existing container scope changes so
transitions are planned atomically.
Preserve conditions and unrelated authorization data during scope changes.
Support complementary folder and contents grants for the same subject in
Advanced sharing.
Validate and reject overlapping container scopes before saving.
Prevent conflicting duplicate grants for the same subject.
Warn before leaving Advanced sharing when there are unsaved changes.
Allow users to stay, discard changes, or keep changes when switching modes.
Ignore delayed target lookups after the dialog is closed, discarded, or moved
to another resource.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Access-change ordering and cancelled additions can incorrectly revoke existing permissions, and an existing test still expects the previous operation order.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Unresolved critical access-control bugs can unexpectedly revoke permissions, discard complementary grants, and mislabel the subjects affected by edits.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Sequential ACL updates can corrupt permissions during scope swaps and revoke the caller’s only Control grant before a replacement owner is added, potentially leaving no controller.
Swapping a subject's folder=Viewer and contents=Editor scopes passes validation, but sequential PATCHes leave both grants on the folder and none on its contents. After the first move, the planner matches both contents authorizations for the second move, so Save can succeed with incorrect permissions. Plan both transitions from one original ACL snapshot while preserving conditions, or reject such swaps before any PATCH; add a regression using the real planner.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The transition tests mock the planner, leaving preservation of conditions and other recipients’ permissions, plus scope-only changes to mixed-permission rows, unverified.
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
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.
Improve advanced access-control editing for containers while preserving independent
folder and contents permissions.
This update makes the access-control modal better reflect the underlying ACL
authorizations and avoids destructive revoke-then-grant behavior when changing
container scopes.
Changes
Mixed permissionswhen a subject has different roles acrossauthorizations instead of incorrectly merging them.
planChangeContainerAccessfor existing container scope changes sotransitions are planned atomically.
Advanced sharing.
to another resource.