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

Public cannot download file preview of unprotected (without password) link share without remote.php #10341

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 an unprotected (without password) link share of a file (lorem.txt)
  2. Try to download the preview of the shared file (without remote.php) ❌
curl 'https://localhost:9200/dav/public-files/ESoiewAIGZCJioP/lorem.txt?preview=1' -vk
< HTTP/1.1 500 Internal Server Error
< Content-Type: application/xml; charset=utf-8
...
<d:error xmlns:d="DAV" xmlns:s="http://sabredav.org/ns">
  <s:exception></s:exception>
  <s:message>{&#34;id&#34;:&#34;com.owncloud.api.thumbnails&#34;,&#34;code&#34;:500,&#34;detail&#34;:&#34;could not get image from source: could not get the image \&#34;https://127.0.0.1:9200/dav/public-files/YMYxKFSIDBqROug/lorem.txt?expiration=\u0026signature=\&#34;. Request returned with statuscode 401 &#34;,&#34;status&#34;:&#34;Internal Server Error&#34;}
  </s:message>
</d:error>
  1. Download the preview of the shared file (with remote.php) ✔️
curl 'https://localhost:9200/remote.php/dav/public-files/ESoiewAIGZCJioP/lorem.txt?preview=1' -vk
< HTTP/1.1 200 OK
< Content-Type: image/jpeg
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