Skip to content

fix: [OCISDEV-810] fix the space role and custom role checks - #653

Merged
2403905 merged 1 commit into
mainfrom
fix/OCISDEV-810
Jul 10, 2026
Merged

2403905 merged 1 commit into
mainfrom
fix/OCISDEV-810

Conversation

@2403905

@2403905 2403905 commented Jul 9, 2026 •

Copy link
Copy Markdown

Related PR owncloud/ocis#12540

@2403905
2403905 requested a review from a team as a code owner July 9, 2026 15:04
@kw-security

kw-security commented Jul 9, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@2403905
2403905 merged commit 1f85e04 into main Jul 10, 2026
16 checks passed
@2403905
2403905 deleted the fix/OCISDEV-810 branch July 10, 2026 10:45
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 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants