Repository navigation
Labels
Description
Description
While searching for files | folder with REPORT method, new and old webdav gives response for the search request but spaces gives a method not allowed response.
Steps to reproduce
- As user
Einsteincreate resourcessimple.txt,simple-folder,simple-file.txt - Search for
simpleusingspacesendpoint
curl -X REPORT -vk -u einstein:relativity https://host.docker.internal:9200/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157$4c510ada-c86b-4815-8820-42cdf82c3d51 -d '<?xml version="1.0" encoding="UTF-8"?>
<oc:search-files
xmlns:a="DAV:"
xmlns:oc="http://owncloud.org/ns">
<oc:search>
<oc:pattern>simple</oc:pattern>
</oc:search>
</oc:search-files>'
Expected behavior
The request should work like in old/new wedav endpoints
curl -X REPORT -vk -u einstein:relativity https://host.docker.internal:9200/remote.php/dav/files/Einstein -d '<?xml version="1.0" encoding="UTF-8"?>
<oc:search-files
xmlns:a="DAV:"
xmlns:oc="http://owncloud.org/ns">
<oc:search>
<oc:pattern>simple</oc:pattern>
</oc:search>
</oc:search-files>'
Response on new/old webdav
<d:multistatus
xmlns:s="http://sabredav.org/ns"
xmlns:d="DAV:"
xmlns:oc="http://owncloud.org/ns">
<d:response>
<d:href>/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157%214c510ada-c86b-4815-8820-42cdf82c3d51/simple</d:href>
<d:propstat>
<d:prop>
<oc:fileid>1284d238-aa92-42ce-bdc4-0b0000009157!f234c905-4697-490f-a40d-8d8bb5cd3a13</oc:fileid>
<d:getetag></d:getetag>
<d:getlastmodified>2022-07-19T07:00:05Z</d:getlastmodified>
<d:getcontenttype>httpd/unix-directory</d:getcontenttype>
<d:resourcetype>
<d:collection/>
</d:resourcetype>
<oc:size>0</oc:size>
<oc:score>0.7765131592750549</oc:score>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
</d:response>
<d:response>
<d:href>/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157%214c510ada-c86b-4815-8820-42cdf82c3d51/simple-file</d:href>
<d:propstat>
<d:prop>
<oc:fileid>1284d238-aa92-42ce-bdc4-0b0000009157!d3535d8f-c3e8-4792-8e31-c75e0de7fe19</oc:fileid>
<d:getetag></d:getetag>
<d:getlastmodified>2022-07-19T07:00:13Z</d:getlastmodified>
<d:getcontenttype>httpd/unix-directory</d:getcontenttype>
<d:resourcetype>
<d:collection/>
</d:resourcetype>
<oc:size>0</oc:size>
<oc:score>0.7765131592750549</oc:score>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
</d:response>
<d:response>
<d:href>/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157%214c510ada-c86b-4815-8820-42cdf82c3d51/simple-simple</d:href>
<d:propstat>
<d:prop>
<oc:fileid>1284d238-aa92-42ce-bdc4-0b0000009157!337e82cc-873e-4a8d-ab5f-0ceccf33ff49</oc:fileid>
<d:getetag></d:getetag>
<d:getlastmodified>2022-07-19T07:00:20Z</d:getlastmodified>
<d:getcontenttype>httpd/unix-directory</d:getcontenttype>
<d:resourcetype>
<d:collection/>
</d:resourcetype>
<oc:size>0</oc:size>
<oc:score>0.7765131592750549</oc:score>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
</d:response>
<d:response>
<d:href>/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157%214c510ada-c86b-4815-8820-42cdf82c3d51/simple-folder</d:href>
<d:propstat>
<d:prop>
<oc:fileid>1284d238-aa92-42ce-bdc4-0b0000009157!4f1a42d4-33b7-49d3-81bd-4e63c2801e83</oc:fileid>
<d:getetag></d:getetag>
<d* Connection #0 to host host.docker.internal left intact
:getlastmodified>2022-07-19T06:21:01Z
</d:getlastmodified>
<d:getcontenttype>httpd/unix-directory</d:getcontenttype>
<d:resourcetype>
<d:collection/>
</d:resourcetype>
<oc:size>0</oc:size>
<oc:score>0.6664775013923645</oc:score>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
</d:response>
</d:multistatus>
Actual behavior
Gives 405 status code.
Response on (spaces)
* Trying 127.0.0.1:9200...
* TCP_NODELAY set
* Connected to host.docker.internal (127.0.0.1) port 9200 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_128_GCM_SHA256
* ALPN, server did not agree to a protocol
* Server certificate:
* subject: O=Acme Corp; CN=OCIS
* start date: Jul 19 06:19:00 2022 GMT
* expire date: Jul 19 06:19:00 2023 GMT
* issuer: O=Acme Corp; CN=OCIS
* SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.
* Server auth using Basic with user 'einstein'
> REPORT /dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157c510ada-c86b-4815-8820-42cdf82c3d51 HTTP/1.1
> Host: host.docker.internal:9200
> Authorization: Basic ZWluc3RlaW46cmVsYXRpdml0eQ==
> User-Agent: curl/7.68.0
> Accept: */*
> Content-Length: 205
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 205 out of 205 bytes
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* Mark bundle as not supporting multiuse
< HTTP/1.1 405 Method Not Allowed
< Cache-Control: no-cache, no-store, max-age=0, must-revalidate, value
< Content-Length: 0
< Content-Security-Policy: frame-ancestors 'self'
< Date: Tue, 19 Jul 2022 07:25:03 GMT
< Expires: Thu, 01 Jan 1970 00:00:00 GMT
< Last-Modified: Tue, 19 Jul 2022 07:25:03 GMT
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< X-Web-Version: 2.0.0-beta.4+55cfcec98
<
* Connection #0 to host host.docker.internal left intact
Setup
Please describe how you started the server and provide a list of relevant environment variables or configuration files.
Details
OCIS_VERSION= latest docker pullMetadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
[-]`new` webdav gives response but `old` and `spaces` endpoint gives a method not allowed for `REPORT` search[/-][+]`new` webdav gives response but `old` and `spaces` endpoint gives a method not allowed for `REPORT` search request[/+][-]`new` webdav gives response but `old` and `spaces` endpoint gives a method not allowed for `REPORT` search request[/-][+]/webdav and `spaces` endpoint does not alloow `REPORT` requests#[/+][-]/webdav and `spaces` endpoint does not alloow `REPORT` requests#[/-][+]/webdav and `spaces` endpoint does not alloow `REPORT` requests[/+]SwikritiT commentedon Jul 8, 2022
A lot of tests linked with this issue which needs follow-up so re-opening
ocis/tests/acceptance/expected-failures-API-on-OCIS-storage.md
Lines 945 to 960 in 50cb191
TODO QA Team:
[-]/webdav and `spaces` endpoint does not alloow `REPORT` requests[/-][+]/webdav and `spaces` endpoint does not alloow `REPORT` requests - tests needs a follow-up[/+][-]/webdav and `spaces` endpoint does not alloow `REPORT` requests - tests needs a follow-up[/-][+]`spaces` endpoint does not allow `REPORT` requests [/+]SwikritiT commentedon Jul 19, 2022
The tests are still failing because the issue is not fixed for
spacesPR #4118 fixed it forolddav but for spaces the issue still exists. I have updated the description accordinglymicbar commentedon Jul 19, 2022
@aduffeck can you check what is still missing?