-
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
send (MOVE,COPY) requests to another user's webDav endpoints as normal user gives 400 instead of 404 #3882
Comments
Actually, ocis and oc10 MUST return 415 (Unsupported Media Type) as per RFC4918 Section 8.4 - Required Bodies in Requests:
A MOVE request has no body, but the request presented above sends |
Issue owncloud/core#40126 raised. I will get someone to sort that out ASAP. |
1 similar comment
Issue owncloud/core#40126 raised. I will get someone to sort that out ASAP. |
So I just tested this and requests to another users resources now always return 404. |
Reopening this as there are still some tests linked to this issue in expected to fail ocis/tests/acceptance/expected-failures-API-on-OCIS-storage.md Lines 901 to 907 in 0676828
We probably need to split the tests according to the behavior of oc10 and ocis because it oc10 the request returns Scenario: send MOVE requests to another user's webDav endpoints as normal user
When user "Brian" requests these endpoints with "MOVE" about user "Alice"
| endpoint |
| /remote.php/dav/files/%username%/textfile0.txt |
| /remote.php/dav/files/%username%/PARENT |
| /remote.php/dav/files/%username%/PARENT/parent.txt |
Then the HTTP status code of responses on all endpoints should be "403" TODO QA Team:
|
@C0rby Hi are you sure this is fixed the test still report that the status code is Scenario: send MOVE requests to another user's webDav endpoints as normal user # /drone/src/oc10/testrunner/tests/acceptance/features/apiAuthWebDav/webDavMOVEAuth.feature:57
When user "Brian" requests these endpoints with "MOVE" about user "Alice" # OCSContext::userSendsRequestToTheseEndpointsWithOutBody()
| endpoint |
| /remote.php/dav/files/%username%/textfile0.txt |
| /remote.php/dav/files/%username%/PARENT |
| /remote.php/dav/files/%username%/PARENT/parent.txt |
Then the HTTP status code of responses on all endpoints should be "403" # FeatureContext::theHTTPStatusCodeOfResponsesOnAllEndpointsShouldBe()
Responses did not return expected http status code
Failed asserting that 400 is identical to 403. |
blocked util #3882 (comment) |
blocked until this issue resolved : #5009 |
Trying to MOVE with another user's endpoint return curl -XMOVE "https://localhost:9200/remote.php/dav/files/demo/myfile.txt" \
-H"Destination: https://localhost:9200/remote.php/dav/files/admin/moved.txt" \
-uadmin:admin -vk < HTTP/1.1 404 Not Found
< Content-Length: 0 So, closing this here |
Tests fixed in #8460 |
Describe the bug
A clear and concise description of what the bug is.
Steps to reproduce
Steps to reproduce the behavior:
textfile0.txt
MOVE
request to Alices endpoint/remote.php/dav/files/Alice/textfile0.txt
Expected behavior
As in oc10 it should return with
403
Actual behavior
Returns
400
Setup
Please describe how you started the server and provide a list of relevant environment variables.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: