Repository navigation
Conversation
A public share with a password answered a request without credentials with a 401 but no WWW-Authenticate header. Clients like Cadaver only send credentials once challenged, so they could never open such a share. Challenge like the authenticated endpoint does: basic auth, or DummyBasic over ajax so the browser does not open its login popup. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
skjnldsv
requested review from
leftybournes and
provokateurin
and removed request for
a team
November 28, 2026 06:36
1 of 4 tasks
Member
Member
Author
|
Closing in favor of #63420, which fixes the same missing challenge and also the cookie redirect loop. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cadaver can't open a password-protected public share over
public.php/dav. Without credentials the server answers 401 with noWWW-Authenticateheader, and Cadaver only sends the password once it's challenged.The cause is
PublicAuth::checkToken(): it throwsNotAuthenticated, which skips Sabre'schallenge(). I now add the same header the authenticated endpoint sends:Basicfor clients,DummyBasicover ajax so the browser doesn't open its login popup.Before / after, no credentials:
Checked against a local master instance: plain, ajax (
DummyBasic) and right password (207) all matchremote.php/dav. I didn't try it with Cadaver itself.Checklist
3. to review, feature component)stable32)AI (if applicable)
👾 This pull request was assisted by Claude Code, commits carry an
Assisted-bytrailer.