Skip to content

fix: correct public WebDAV share URL - #15781

Merged
skjnldsv merged 1 commit into
nextcloud:masterfrom
alexpdp7:patch-1
Nov 29, 2026
Merged

skjnldsv merged 1 commit into
nextcloud:masterfrom
alexpdp7:patch-1

Conversation

@alexpdp7

Copy link
Copy Markdown
Contributor

Tested with cadaver.

✅ Checklist

  • I have built the documentation locally and reviewed the output
  • Screenshots are included for visual changes
  • I have not moved or renamed pages (or added a redirect if I did)
  • I have run codespell or similar and addressed any spelling issues

@github-actions

Copy link
Copy Markdown
Contributor

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

@skjnldsv skjnldsv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! public.php/webdav/files/USERNAME isn't right either though. The legacy endpoint serves the share at public.php/webdav/ with the share token as the username. The current one is public.php/dav/files/TOKEN with anonymous as the username and the share password, like in developer_manual/client_apis/WebDAV/basic.rst. Could you switch to that?

Signed-off-by: alexpdp7 <alex@pdp7.net>
@alexpdp7

Copy link
Copy Markdown
Contributor Author

@skjnldsv , thanks for the pointers. I have updated my PR and tested it works. However, I could not get it to work using a share password with Cadaver.

@skjnldsv

Copy link
Copy Markdown
Member

Thanks for the update! Two things from testing on a current instance:

  • The URL needs files/ in it: https://example.com/nextcloud/public.php/dav/files/$TOKEN. Without it (public.php/dav/$TOKEN) the server answers 503.
  • The password part is right: anonymous plus the share password works, for example curl -u 'anonymous:PASSWORD' -X PROPFIND https://example.com/nextcloud/public.php/dav/files/$TOKEN. Cadaver fails because the server answers the missing password with a plain 401 and no WWW-Authenticate challenge, and Cadaver only sends credentials once it is challenged. So that's on the server side, not your docs. Maybe add a short note that the client has to send the credentials up front?

@skjnldsv

Copy link
Copy Markdown
Member

I opend the fix here nextcloud/server#67133

@skjnldsv
skjnldsv merged commit fe95cba into nextcloud:master Nov 29, 2026
25 of 27 checks passed
@welcome

welcome Bot commented Nov 29, 2026

Copy link
Copy Markdown

Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/documentation/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22

@skjnldsv

Copy link
Copy Markdown
Member

/backport to stable35

@skjnldsv

Copy link
Copy Markdown
Member

/backport to stable34

@skjnldsv

Copy link
Copy Markdown
Member

/backport to stable33

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.

3 participants