Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
saw-jan opened this issue Oct 18, 2024 · 0 comments
Labels

Comments

@saw-jan
Copy link
Member

saw-jan commented Oct 18, 2024

Steps to reproduce

  1. Create a password protected link share of a file (lorem.txt)
  2. Try to download the preview
# 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
< HTTP/1.1 404 Not Found
< Content-Type: application/xml; charset=utf-8
...
<d:error xmlns:d="DAV" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre\DAV\Exception\NotFound</s:exception>
  <s:message>File with name lorem.txt could not be located</s:message>
</d:error>

Related issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant