mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[PR #142] [MERGED] Fix status code for MKCOL on existing resource #488
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/sigoden/dufs/pull/142
Author: @aneeshusa
Created: 11/9/2022
Status: ✅ Merged
Merged: 11/10/2022
Merged by: @sigoden
Base:
main← Head:fix-status-code-for-mkcol-on-existing-resource📝 Commits (2)
828d4d7Fix status code for MKCOL on existing resourcee6bdf22add test📊 Changes
2 files changed (+11 additions, -1 deletions)
View changed files
📝
src/server.rs(+4 -1)📝
tests/webdav.rs(+7 -0)📄 Description
Per https://datatracker.ietf.org/doc/html/rfc4918#section-9.3.1,
MKCOL should return a 405 if the resource already exists.
Impetus for this change:
I am using dufs as a webdav server for Joplin
which interpreted the previous behavior of returning a 403 as an error,
preventing syncing from working.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.