mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[PR #417] [CLOSED] fix: Prevent recursive creation of parent directories #604
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/417
Author: @ign0tus
Created: 7/16/2024
Status: ❌ Closed
Base:
main← Head:main📝 Commits (1)
4f0dc45fix: Prevent recursive creation of parent directories📊 Changes
3 files changed (+20 additions, -26 deletions)
View changed files
📝
src/server.rs(+17 -23)📝
tests/allow.rs(+1 -1)📝
tests/http.rs(+2 -2)📄 Description
The specification of WebDAV (RFC4818) does not allow recursive creation of parent directories.
The feature to create all parent recursively when uploading, moving or copying a file has been removed and instead a check has been introduced to see if the directory exists. If not, 409 CONFLICT is returned in accordance with RFC4818.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
https://datatracker.ietf.org/doc/html/rfc4918#section-9.3 ↩︎