Skip to content

fix: status codes on DeleteStorageSpace - #691

Merged
rhafer merged 1 commit into
opencloud-eu:mainfrom
rhafer:fix-list-disabled-spaces
Jun 18, 2026
Merged

rhafer merged 1 commit into
opencloud-eu:mainfrom
rhafer:fix-list-disabled-spaces

Conversation

@rhafer

@rhafer rhafer commented Jun 18, 2026

Copy link
Copy Markdown
Member

When a user with the "can view" or "can edit" roles tries to disable/purge an already disabled space it should get the "not found" status instead of "permission denied". Returning "permission denied" would leak the existence of that space to an unprivileged user.

When a user with the "can view" or "can edit" roles tries to
disable/purge an already disabled space it should get the "not found"
status instead of "permission denied". Returning "permission denied"
would leak the existence of that space to an unprivileged user.
@rhafer
rhafer requested review from aduffeck and micbar June 18, 2026 13:55
@rhafer rhafer self-assigned this Jun 18, 2026
@rhafer
rhafer merged commit 1bf72cb into opencloud-eu:main Jun 18, 2026
20 checks passed
@openclouders openclouders mentioned this pull request Jun 18, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants