-
Notifications
You must be signed in to change notification settings - Fork 184
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
Report request for search responds with different href in new dav - tests need adjusting #3907
Comments
@SwikritiT Which request is giving a 405 response code? IMO the spaces urls in the search response are correct. |
@SwikritiT @phil-davis This is a REPORT request. It is allowed to return different href locations. Unlike a PROPFIND, we cannot scope this REPORT to @butonic JFYI for final approval and closing. |
@SwikritiT as Michael says, the href is an implementation-specific link to where the resource can be accessed. As long as the link actually works (operations to GET the resource content etc can be done) then all is fine. Is the test suite expecting/checking for some format that has If so, then we need to adjust the test suite to not be so specific. |
The difference between PROPFIND and REPORT is that REPORT can actually return any kind of document, it does not even need to return a 207 Multistatus response. The semantics should be formally defined by the report specification, which for our The
I hope this clarifies why we can return href properties pointing to other URLs than the requested one. |
@micbar these request are giving me
response
response
|
Yes we might need to adjust some tests related to search. They should pass in |
There are some tests in https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiWebdavOperations/search.feature that are currently in expected to fail but they should at least pass in so that it doesn't expect only TODO QA-team :
|
I adjusted the title so it is clear that tests need to be adjusted. Re-opening - this will be sorted out by QA Test Automation team. |
@SwikritiT @kiranparajuli589 @phil-davis while searching on
while in
|
@phil-davis @SwikritiT @kiranparajuli589 Also while running test, on |
maybe creating a new|separate ticket for this will be a lot clearer. |
@SwikritiT every thing related to this issue has been done so far. this can be closed? |
If there aren't any expected to fail links to this issue in web, ocis, reva we can close this. |
No links to expected to fail. So closing |
Describe the bug
Report request for search responds with href in new dav
Steps to reproduce
Steps to reproduce the behavior:
einstein
create foldertest-one
,test-two
,test-three
test
in new davExpected behavior
The href of response should be something like
/remote.php/dav/files/einstein/test
like in oc10oc10 response
Actual behavior
The href is that of spaces
/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157$4c510ada-c86b-4815-8820-42cdf82c3d51%214c510ada-c86b-4815-8820-42cdf82c3d51/test-one
ocis response
This request gives
405
in both old dav and spaces apiSetup
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: