[Bug]: Previews and Download not available for Link Shares of Remote Shares
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
Bug description
While testing the backports for https://github.com/nextcloud/server/pull/51389, I noticed that although link shares can be opened, previews are not displayed, and the download button is missing. This behavior seems unusual, but I'm not familiar with the topic, so it might be the expected outcome. 🤷
Steps to Reproduce:
- Set up Alice on Instance A and Bob on Instance B.
- Alice uploads a folder containing pizza pictures to Instance A.
- Alice shares the pizza folder with Bob on Instance B, granting "View only" or "Can edit" permissions.
- Bob can open the share, view the pizza pictures, and sees the download option.
- Bob creates a public link share for the folder.
- When opening the link, the list of images is displayed, but previews are not shown, and it's not possible to open or download the images.
Additionally, I observed that the "hide download" option for the link share is enabled and cannot be unchecked because checkInheritedAttributes overwrites it. Reverting https://github.com/nextcloud/server/pull/50642 did not help.
Instance A (share initiator)
Instance B (share receiver)
Instance B (public link share)
Expected behavior:
I'm unsure 🙈
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the Instance A/Instance B federated-share flow and the public link share using the pizza-picture steps. Start by tracing the mentioned checkInheritedAttributes behavior and compare the link-share permissions with the working remote share; clarify the expected preview and download behavior before treating consistent access in the public link as done.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100