Skip to content

[stable35] fix(dav): make password protected shares usable over /public.php/dav/files - #67150

Open
backportbot[bot] wants to merge 3 commits into
stable35from
backport/63420/stable35
Open

backportbot[bot] wants to merge 3 commits into
stable35from
backport/63420/stable35

Conversation

@backportbot

@backportbot backportbot Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Backport of #63420

The bot left checkToken() throwing on this branch, so the challenge never went out. I put the return back in the first commit.

👾 This pull request was assisted by Claude Code, commits carry an Assisted-by trailer.

@backportbot backportbot Bot added this to the Nextcloud 35.0.4 milestone Nov 29, 2026
@skjnldsv
skjnldsv force-pushed the backport/63420/stable35 branch from 1b799ba to 8a1b4f5 Compare November 29, 2026 00:59
ernolf and others added 3 commits November 30, 2026 17:20
- the throw leaves Auth\Plugin::beforeMethod() before challenge(), so the 401 has no WWW-Authenticate header
- ajax callers keep the throw to avoid the browser password prompt

Fixes #59391

Assisted-by: ClaudeCode:claude-opus-5
Signed-off-by: ernolf <raphael.gradenwitz@googlemail.com>
Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
- clients that cannot hold __Host- cookies get a redirect to /s/<token> and loop between the endpoints
- the check targets ambient session replay, which a request carrying its own credentials is not

Fixes #63418

Assisted-by: ClaudeCode:claude-opus-5
Signed-off-by: ernolf <raphael.gradenwitz@googlemail.com>
Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
…d endpoint

remote.php/dav answers ajax calls with a DummyBasic challenge, so
clients can tell a missing password from other errors without the
browser opening its login popup. Do the same on public.php/dav through
challenge(), which now runs for every password protected share.

Also adapt the tests added on master since this branch was opened to
checkToken() returning the failure, and the share session they use.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
@miaulalala
miaulalala force-pushed the backport/63420/stable35 branch from 8a1b4f5 to 7c08cdc Compare November 30, 2026 16:20
@miaulalala
miaulalala marked this pull request as ready for review November 30, 2026 16:20
@miaulalala
miaulalala requested a review from a team as a code owner November 30, 2026 16:20
@miaulalala
miaulalala requested review from icewind1991 and salmart-dev and removed request for a team November 30, 2026 16:20

This branch has not been deployed

No deployments
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