owncloud / owncloud/ocis

Cannot download the preview of password protected link shared file using basic auth

Open
#10,342 0 comments 0 reactions 0 assignees View on GitHub
Type:Bug
Dominant language
Go
Stars
2.1k
Forks
274
Avg merge
2d 1h
Merged PRs (30d)
103

Description

## Steps to reproduce
1. Create a password protected link share of a file (`lorem.txt`)
2. Try to download the preview
```bash
# with remote.php
curl 'https://localhost:9200/remote.php/dav/public-files/YMYxKFSIDBqROug/lorem.txt?preview=1' \
-u public:strong-pass -vk

# without remote.php
curl 'https://localhost:9200/dav/public-files/YMYxKFSIDBqROug/lorem.txt?preview=1' \
-u public:strong-pass -vk
```
```xml
< HTTP/1.1 404 Not Found
< Content-Type: application/xml; charset=utf-8
...

Sabre\DAV\Exception\NotFound
File with name lorem.txt could not be located

```

## Related issues
- https://github.com/owncloud/ocis/issues/8602

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.