-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebDAV MKCOL
returns wrong Status Code 404
if multiple intermediate collections are missing
#6136
Comments
404
if multiple intermediate collections are missingMKCOL
returns wrong Status Code 404
if multiple intermediate collections are missing
@kaivol Can you point out which impact that has for you? |
I encountered this problem when I tried to migrate existing data to oCIS using |
Ok. Thanks for that analysis. We should fix that. |
done. Fixed in rc.2 |
Describe the bug
When trying to create a collection via WebDAV (
MKCOL
) where more than one intermediate collections are missing, oCIS returns404 (Not Found)
instead of409 (Conflict)
.According to RFC 4918, Status Code
409 (Conflict)
should be used to indicate thatSteps to reproduce
Steps to reproduce the behavior:
foo
exists in the users personal folderMKCOL /remote.php/webdav/foo/bar
returns409 Conflict
MKCOL /remote.php/webdav/foo/bar/baz
returns404 Not Found
MKCOL /remote.php/webdav/foo
returns201 Created
MKCOL /remote.php/webdav/foo/bar/baz
returns409 Conflict
Expected behavior
In step 2, the expected Status Code is
409 Conflict
.Actual behavior
The actual Status Code is
404 Not Found
.Setup
oCIS Version: 3.0.0-rc.1 in Podman
Reverse proxy: Caddy
Footnotes
https://www.rfc-editor.org/rfc/rfc4918#section-9.3.1 ↩
The text was updated successfully, but these errors were encountered: