Repository navigation
fix: [OCISDEV-810] fix the space role and custom role checks - #653
Merged
Merged
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
9 tasks
mklos-kw
approved these changes
Jul 10, 2026
butonic
added a commit
to opencloud-eu/reva
that referenced
this pull request
Nov 11, 2026
A space share could carry a single grant management bit, e.g. viewer permissions plus RemoveGrant. decomposedfs treated RemoveGrant alone as the manager marker, so such a grantee could manage the space while the UI showed a viewer. The share provider now rejects space root shares that carry any of AddGrant, UpdateGrant, RemoveGrant or DenyGrant without the full manager permissions, both on create and on update. In decomposedfs IsManager, IsEditor and IsViewer become IsSpaceManager, IsSpaceEditor and IsSpaceViewer and check the role bitmaps instead of a single bit. A space manager needs AddGrant, UpdateGrant and RemoveGrant. DenyGrant is not required, so older manager and coowner grants still count. Upstream put the share check into the gateway (`owncloud#653`). Space membership lives in the share provider since #593, so the check goes into CreateShare and UpdateShare there. Update requests are checked against the effective new permissions, the same ones the last manager check uses. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
mklos-kw
pushed a commit
that referenced
this pull request
Nov 11, 2026
mklos-kw
added a commit
that referenced
this pull request
Nov 12, 2026
* fix(gateway): prevent setting an expiration on the last space manager (#631) Setting an expiration on the last permanent manager of a space was allowed, which left the space without any manager once the grant expired. updateSpaceShare only ran the "is a permanent manager remaining" check when a grant dropped the manager role (RemoveGrant=false). It now also runs when a manager grant is given an expiration, via the new mayRemoveLastPermanentManager predicate, since an expiring manager is not a permanent manager. Signed-off-by: David Walter <[email protected]> Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]> * fix: [OCISDEV-810] fix the space role and custom role checks (#653) * fix: [OCISDEV-971] escape oc:tags and lock owner name in PROPFIND responses (#652) * feat: [OCISDEV-720] fix public link --------- Signed-off-by: David Walter <[email protected]> Co-authored-by: David Walter <[email protected]> Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]> Co-authored-by: Roman Perekhod <[email protected]> Co-authored-by: Firas Frikha <[email protected]>
butonic
added a commit
to pbleser-oc/opencloud
that referenced
this pull request
Nov 13, 2026
Updating a permission or a space root permission did not check the roles an administrator enabled with GRAPH_AVAILABLE_ROLES. An invite with a disabled role was rejected, but the same role could be set by updating an existing share. We now validate updates against the allowlist, same as invites. The three "without enabling it" scenarios now expect a 400. Their removed lines are padded with blank lines so the line numbers of the scenarios stay the same. ported from `owncloud/ocis#12540`. The reva half (`owncloud/reva#653`) is opencloud-eu/reva#993 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.
Related PR owncloud/ocis#12540