Skip to content

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

Draft
backportbot[bot] wants to merge 3 commits into
stable33from
backport/63420/stable33
Draft

backportbot[bot] wants to merge 3 commits into
stable33from
backport/63420/stable33

Conversation

@backportbot

@backportbot backportbot Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Backport of #63420

The bot's conflict resolution needed a few fixes on this branch:

  • checkToken() still threw, so the challenge never went out. It returns the failure now.
  • The old strict cookie check was still there next to the new one, so the redirect loop stayed. Removed.
  • IShare::isPasswordProtected() and isPasswordHashed() don't exist on this branch, so the new check uses getPassword() !== null and the tests no longer mock them.

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

- 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>
@skjnldsv
skjnldsv force-pushed the backport/63420/stable33 branch from 3a356ea to eedef50 Compare November 29, 2026 00:59
ernolf and others added 2 commits November 29, 2026 01:59
- 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>

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.

2 participants