same `href` in REPORT request for all `dav-path-version`
- Dominant language
- Go
- Stars
- 2.1k
- Forks
- 274
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 103
Description
## 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
```
Contributor guide
Assessment
This issue has not been assessed yet.