Skip to content

Fix WebDAV uploads on non-standard ports (#112) - #115

Merged
a-schild merged 2 commits into
mainfrom
fix/112-webdav-upload-preemptive-auth
Jul 24, 2026
Merged

Fix WebDAV uploads on non-standard ports (#112)#115
a-schild merged 2 commits into
mainfrom
fix/112-webdav-upload-preemptive-auth

Conversation

@a-schild

Copy link
Copy Markdown
Owner

Apply preemptive auth on the configured port for WebDAV (issue #112)

buildAuthSardine() enabled preemptive basic authentication with the
hostname-only Sardine overload, which assumes the standard ports 80/443.
On a server reachable on a non-standard port the preemptive credentials
were therefore not sent, the server responded with an auth challenge, and
non-repeatable requests such as a streamed file upload (PUT) failed with
"Cannot retry request with a non-repeatable request entity".

Use the port-aware enablePreemptiveAuthentication(host, httpPort,
httpsPort) overload with the configured port so uploads work regardless
of the port (e.g. behind a reverse proxy, or the containerized server used
by the integration tests).

Read-only/repeatable WebDAV operations were unaffected because they can be
retried after the challenge, which is why folder tests passed while file
upload/download/rename/remove failed.

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com

a-schild and others added 2 commits July 24, 2026 11:08
buildAuthSardine() enabled preemptive basic authentication with the
hostname-only Sardine overload, which assumes the standard ports 80/443.
On a server reachable on a non-standard port the preemptive credentials
were therefore not sent, the server responded with an auth challenge, and
non-repeatable requests such as a streamed file upload (PUT) failed with
"Cannot retry request with a non-repeatable request entity".

Use the port-aware enablePreemptiveAuthentication(host, httpPort,
httpsPort) overload with the configured port so uploads work regardless
of the port (e.g. behind a reverse proxy, or the containerized server used
by the integration tests).

Read-only/repeatable WebDAV operations were unaffected because they can be
retried after the challenge, which is why folder tests passed while file
upload/download/rename/remove failed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@a-schild
a-schild merged commit fbf57b7 into main Jul 24, 2026
1 check passed
@a-schild
a-schild deleted the fix/112-webdav-upload-preemptive-auth branch July 24, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant