owncloud / ocis

:atom_symbol: ownCloud Infinite Scale Stack
https://doc.owncloud.com/ocis/next/
Apache License 2.0
1.38k stars 182 forks source link

same `href` in REPORT request for all `dav-path-version` #7060

Open nabim777 opened 1 year ago

nabim777 commented 1 year ago

Describe the bug

for the all dav-path-version, when a user or admin searches for a resource then the response contains same href

Steps to reproduce

Steps to reproduce the behavior:

  1. As an admin, create a file file.txt
  2. As an admin, searches resources file through API using the curl command

search curl command:

for old dav path version ```bash curl -kv -XREPORT https://localhost:9200/webdav \ -u admin:admin \ -d " file " | xmllint --format - ```
for new dav path version ```bash curl -kv -XREPORT https://localhost:9200/dav/files/admin \ -u admin:admin \ -d " file " | xmllint --format - ```
for space dav path ```bash curl -kv -XREPORT https://localhost:9200/remote.php/dav/spaces/\ -u admin:admin \ -d " file " | xmllint --format - ```

Expected behavior

href in response should be different for specific dav-path-version

Actual behavior

for all path version same responses ```xml < HTTP/1.1 207 Multi-Status < Content-Length: 972 < Content-Range: rows 0-0/1 < Content-Type: application/xml; charset=utf-8 < Date: Thu, 17 Aug 2023 10:39:09 GMT < Dav: 1, 3, extended-mkcol < X-Request-Id: nabin-OptiPlex-3050/21p7P1OefW-004090 < { [946 bytes data] * TLSv1.2 (IN), TLS header, Supplemental data (23): { [5 bytes data] 100 1153 100 972 100 181 15412 2870 --:--:-- --:--:-- --:--:-- 18596 * Connection #0 to host localhost left intact /remote.php/dav/spaces/c3388f05-07ac-4f4c-97e4-f03f4d4e9001$82014bc9-dae1-4a68-b7f9-baf721a6c00f/file.txt c3388f05-07ac-4f4c-97e4-f03f4d4e9001$82014bc9-dae1-4a68-b7f9-baf721a6c00f!77b3f71c-3c0c-42ba-aa9e-2ee9f5594e1f c3388f05-07ac-4f4c-97e4-f03f4d4e9001$82014bc9-dae1-4a68-b7f9-baf721a6c00f!82014bc9-dae1-4a68-b7f9-baf721a6c00f file.txt 2023-08-17T09:25:34Z text/plain RDNVW 0 1.3805915117263794 HTTP/1.1 200 OK ```
nabim777 commented 1 month ago

According to the discussion in https://github.com/owncloud/ocis/issues/7104#issuecomment-1711310103, this issue is closed.

saw-jan commented 1 month ago

According to the discussion in https://github.com/owncloud/ocis/issues/7104#issuecomment-1711310103, this issue is closed.

This is a different issue than issues #7104 and #7096 REPORT request to different dav paths should give respective href in the response

CC @ScharfViktor