-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
[Bug]: Preview image link doesn't work for users it was shared with #37186
Comments
Same idea of : #36013 ? |
@sHHHk sorry for the late reponse. Could you elaborate on how to reproduce the issue? Or what you mean with "preview image link doesn't work"? Do you mean that a file shared with another user doesn't display the preview in their file list? Please provide a screenshot of what you consider broken. |
@sHHHk You describe error with talk app. (on my side, same issue, via web ou mobile app(android and ios)) Have you tested on files app ? (web and mobile ?) Example : If folder his shared by other(here user S) : => via web app, click on file and you see it If share via link : no preview too |
This comment was marked as outdated.
This comment was marked as outdated.
As @mejo- stated: please elaborate on how to reproduce this. Please be as step-by-step as possible. If we cannot reproduce, it'll be very challenging to sort out what is going on. How are you creating the initial share? Are you opening the file details/sharing tab and selecting Share link to generate a shareable link? Or are you using the Talk paperclip then selecting Share from Nextcloud? It sounds more like you're trying to use an Internal link to share with someone, but they don't actually have access to the share. So this would be expected behavior.
This would be an Internal Link (well it's what it gets transformed to after the shorter one is generated). It won't work unless the destination party already has share access to this file (i.e. you've shared the folder or file previously with them with appropriate rights).
This second was likely shared using the Talk paperclip then selecting Share from Nextcloud. Because shareable links don't generate files here since they're not attachments. |
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: