Downloading file using file-id doesn't work with old and new dav paths
- Dominant language
- Go
- Stars
- 2.1k
- Forks
- 274
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 103
Description
## Describe the bug
When we try to download a file using file id, it returns `404 status code`
## Steps to reproduce
1. As an `admin`, upload the file `file.txt` with content `hello world`
2. As a `admin`, download the file `file.txt` with file-id using API in `old/new` dav version
```bash
curl -XGET "https://localhost:9200/remote.php/webdav/" -u admin:admin -vk
curl -XGET "https://localhost:9200/remote.php/dav/files/admin/" -u admin:admin -vk
```
## Expected behavior
Expected to have same behaviour like `dav/spaces` endpoint (spaces dav version)
```bash
curl -XGET "https://localhost:9200/dav/spaces/" -u admin:admin -vk
```
```zsh
* Trying 127.0.0.1:9200...
* Connected to localhost (127.0.0.1) port 9200 (#0)
.
.
.
hello world
```
## Actual behavior
```zsh
* Trying 127.0.0.1:9200...
* Connected to localhost (127.0.0.1) port 9200 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* TLSv1.0 (OUT), TLS header, Certificate Status (22):
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
.
.
.
* Mark bundle as not supporting multiuse
< HTTP/1.1 404 Not Found
```
Contributor guide
Assessment
This issue has not been assessed yet.