Skip to content

fix(proxy): make OCS capabilities endpoint unprotected - #3173

Open
kost wants to merge 1 commit into
opencloud-eu:mainfrom
kost:fix-ocs-capabilities-unprotected
Open

fix(proxy): make OCS capabilities endpoint unprotected#3173
kost wants to merge 1 commit into
opencloud-eu:mainfrom
kost:fix-ocs-capabilities-unprotected

Conversation

@kost

@kost kost commented Jul 25, 2026

Copy link
Copy Markdown

Anonymous/unauthenticated clients need to read /ocs/v[12].php/cloud/ capabilities before they've ever authenticated - it's how a client discovers server capabilities, including auth-related ones, in the first place. It fell through to the general /ocs/ policy route, which requires auth, so anonymous requests got a 401 instead of the (public-safe) capabilities payload.

Mirrors the existing precedent for /ocs/v[12].php/config a few lines above, which already carries Unprotected: true for the same reason.

Types of changes

  • [ X ] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Anonymous/unauthenticated clients need to read /ocs/v[12].php/cloud/
capabilities before they've ever authenticated -- it's how a client
discovers server capabilities, including auth-related ones, in the
first place. It fell through to the general /ocs/ policy route, which
requires auth, so anonymous requests got a 401 instead of the
(public-safe) capabilities payload.

Mirrors the existing precedent for /ocs/v[12].php/config a few lines
above, which already carries Unprotected: true for the same reason.
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

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.

1 participant