Skip to content

test(guest-link): guest session does not override other credentials - #3877

Open
v-scharf wants to merge 1 commit into
mainfrom
test/guest-session-other-credentials
Open

v-scharf wants to merge 1 commit into
mainfrom
test/guest-session-other-credentials

Conversation

@v-scharf

@v-scharf v-scharf commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

related #3857

Adds acceptance tests that a guest session cookie never overrides other credentials sent with the same request.

  • invalid bearer token or basic auth + guest session → 401
  • valid user credentials + guest session → authenticated as the user
  • public link + valid or tampered guest session → authenticated as the public link

@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.

@v-scharf
v-scharf marked this pull request as draft November 2, 2026 13:07
Requests that carry a guest session cookie together with other
credentials (bearer token, basic auth, public link, signed URL) must be
authenticated with those credentials, or rejected with 401 if they
are invalid, and never fall back to the guest.

Also covers what the web client does in a guest session: downloads via
the signed oc:downloadURL and TUS uploads with an unusable
Authorization header.

Assisted-by: Claude Code:claude-opus-5-5
@v-scharf
v-scharf force-pushed the test/guest-session-other-credentials branch from f996b50 to 2ee5010 Compare November 12, 2026 14:32
@v-scharf
v-scharf marked this pull request as ready for review November 12, 2026 14:33
@v-scharf
v-scharf requested review from maki5 and saw-jan November 12, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant