Repository navigation
fix(usershareprovider): do not count temporary managers as remaining space managers - #990
Merged
butonic merged 2 commits intoNov 11, 2026
Merged
Conversation
…checks A space needs at least one permanent manager, so a share with an expiration must not count as a remaining manager when a space member is removed or downgraded.
butonic
approved these changes
Nov 11, 2026
butonic
added a commit
that referenced
this pull request
Nov 11, 2026
A space manager share could get an expiration even when it was the last permanent manager of the space. Once it expired the space was left without a manager. The last manager check in UpdateShare only ran when the new permissions stripped AddGrant or RemoveGrant. We now also run it when the share keeps the manager permissions but ends up with an expiration, either from the update or because it already had one and only the permissions change. Removing an expiration does not need the check. Upstream did this in the gateway, where space grants were still handled at the time (`owncloud#631`). Our space membership lives in the share provider since #593, so the check goes into UpdateShare next to the existing one, which ignores expiring managers since #990. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
butonic
added a commit
to opencloud-eu/opencloud
that referenced
this pull request
Nov 12, 2026
Picks up the space manager checks from opencloud-eu/reva#990 and opencloud-eu/reva#993. go-chi and go-jose move up because reva requires the newer versions. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
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.
Expiring manager shares are no longer counted as the remaining space manager, so removing or downgrading the last permanent manager is denied; includes regression specs.