Skip to content

fix(usershareprovider): do not count temporary managers as remaining space managers - #990

Merged
butonic merged 2 commits into
opencloud-eu:workpackagesfrom
dragonchaser:backport-wp2-759
Nov 11, 2026
Merged

butonic merged 2 commits into
opencloud-eu:workpackagesfrom
dragonchaser:backport-wp2-759

Conversation

@dragonchaser

Copy link
Copy Markdown
Member

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.

jvillafanez and others added 2 commits November 10, 2026 15:50
…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.
@dragonchaser dragonchaser added the Type:Maintenance E.g. technical debt, packaging, etc. label Nov 10, 2026
@dragonchaser
dragonchaser marked this pull request as ready for review November 11, 2026 08:30
@dragonchaser
dragonchaser requested a review from butonic November 11, 2026 08:34
@butonic
butonic merged commit 212a59c into opencloud-eu:workpackages Nov 11, 2026
20 checks passed
@dragonchaser
dragonchaser deleted the backport-wp2-759 branch November 11, 2026 10:03
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type:Maintenance E.g. technical debt, packaging, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants