-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
sending MKCOL requests to another or non-existing user's webDav endpoints as normal user should return 404 #40485
Comments
QA Todo:
|
If I try this to a non-existent user: I get I did not expect that. I thought that I would get The aim should be that when trying to access the storage of another "user", I should get the same error code whether the other "user" exists or not. I suppose that oCIS is always returning 404, whether the "user" exists or not? Anyway, we need to look for test scenarios that send MKCOL to another user who exists, and to a username that does not exist. And make scenarios of both that expect 404 in both situations, skip them on oC10, and move the existing scenarios to be bug-demo scenarios that are skipped on oCIS. |
@phil-davis as per the issue i have gone through: For
|
Yes, as I understand the requirement, all these ways of trying to create a folder ( |
#40495 All tests have been added in this PR. So closing this issue. |
This is still an issue in oC10 - the current implementation returns a mix of 403 and 409, when we would like it to always return 404. I created issue #40519 that will need some development work. |
Steps to reproduce
Steps to reproduce the behavior:
As user
admin
sendMKCOL
request to another user's endpointcurl -vk -X MKCOL -u admin:admin http://localhost/core/remote.php/dav/files/anu/Test | xmllint --format -
As user
admin
sendMKCOL
request to non-existing user's endpointcurl -vk -X MKCOL -u admin:admin http://localhost/core/remote.php/dav/files/nonexistent/Test | xmllint --format -
Expected behavior
the status code should be
404
. Visit this lInk owncloud/ocis#3872 (comment) for more infoActual behavior
403
for existing user409
non-existen user`curl -vk -X MKCOL -u admin:admin http://localhost/core/remote.php/dav/files/anu/Test | xmllint --format -`
The text was updated successfully, but these errors were encountered: