-
Notifications
You must be signed in to change notification settings - Fork 189
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
COPY a file into same folder with same name returns 204 instead of 403 #1977
Comments
I wonder what is correct in that situation? Copying an existing file to itself is a NOOP (the file already there with its correct content!), so maybe 204 is a reasonable status? Anyone got an opinion? |
re-tested with local server oCIS version 1.11.0
the next method call gives a 404 as the file no longer exists |
Yeah, curl -X COPY -u admin:admin https://localhost:9200/remote.php/webdav/parent.txt \
-H "Destination: https://localhost:9200/remote.php/webdav/parent.txt" -vk
|
re-tested with oCIS 1.19.1, still relevant |
re-tested with ocis 3.1.0-rc.1+bae37cf20b, gives HTTP status 204 (old,new,spaces) |
In oCIS
curl -X COPY -u admin:admin https://localhost:9200/remote.php/webdav/parent.txt \ -H "Destination: https://localhost:9200/remote.php/webdav/parent.txt" -v
Response
In oC10
curl -X COPY -u admin:admin http://localhost/core/remote.php/webdav/parent.txt \ -H "Destination: http://localhost/core/remote.php/webdav/parent.txt" -v
Response
The text was updated successfully, but these errors were encountered: