[Bug]: Preview image link doesn't work for users it was shared with #37186
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
25-feedback
bug
feature: previews and thumbnails
feature: sharing
needs review
Needs review to determine if still applicable
Bug description
Whenever I share a picture with another user via Nextcloud Talk for example, the user with whom the picture was shared cannot see it under their preview URL.
In my example the user who uploaded the image can view it with both of these URLs. Whereas the user who the file was shared with can only view it in his Nextcloud Talk Folder under the second URL. The server throws a 404 for the first URL.
Example for a preview URL: https://example.com/core/preview?fileId=1240931
Example for https://example.com/remote.php/dav/files/user/Talk/20210908_091635.jpg
Steps to reproduce
Unfortunately I was not able to enclose the cause of this.
I thought I could pin the issue down by disabling all apps with occ and disabling server sided encryption (which was originally enabled on my instance).
Expected behavior
I would assume that an image preview should be shown for the user who the file was shared with under the exact same link with the preview id.
In my example: https://example.com/core/preview?fileId=1240931
Installation method
Official All-in-One appliance
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.0
Web server
Apache (supported)
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response
The text was updated successfully, but these errors were encountered: