Skip to content

fix(files_external): align auth for DAV file transfers - #64291

Open
joshtrichards wants to merge 4 commits into
masterfrom
jtr/fix-filesExternal-DAV-authMismatch
Open

fix(files_external): align auth for DAV file transfers#64291
joshtrichards wants to merge 4 commits into
masterfrom
jtr/fix-filesExternal-DAV-authMismatch

Conversation

@joshtrichards

Copy link
Copy Markdown
Member

Summary

The DAV external storage backend uses the Sabre client for WebDAV operations and Nextcloud’s generic HTTP client (IClient/Guzzle) for file streaming operations. When PR #4000 added authType handling to the DAV backend, it applied only to the Sabre client.

This change centralizes DAV authentication mapping for streamed GET and PUT requests, keeping authentication behavior consistent across both clients.

It also adds regression coverage for:

  • Basic authentication
  • Digest authentication
  • Bearer authentication
  • Default authentication behavior
  • Preservation of Digest authentication options through the generic HTTP client

TODO

  • Decide whether to backport and, if so, how far back

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Two clients are used by the DAV Storage backend depending on the operation: Sabre for WebDAV ops and IClient (Guzzle) for streaming ops.

This change centralizes authentication mapping so both clients receive the same effective auth mode.

Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Assisted-by: Copilot:gpt-5.6-luna

Signed-off-by: Josh <josh.t.richards@gmail.com>
@joshtrichards joshtrichards added this to the Nextcloud 36 milestone Sep 14, 2026
@joshtrichards
joshtrichards requested a review from a team as a code owner September 14, 2026 03:02
@joshtrichards
joshtrichards requested review from Altahrim and icewind1991 and removed request for a team September 14, 2026 03:02
@joshtrichards joshtrichards added the 2. developing Work in progress label Sep 14, 2026
@joshtrichards joshtrichards added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Sep 14, 2026
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.

WebDAV external storage fails for file access and uploads with Digest authentication

2 participants