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

fix: Load preview URL for download-disabled shares #2484

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Sep 8, 2024

This was possible on Nextcloud 30 and previous due to a "bug": The download permission was simply not rejected for public shares, just a hide flag was set on the public share.

Now the permissions are correctly set, so loading a preview is not possible. The work-around is to allow previews when the correct header is set.

@susnux susnux added bug Something isn't working 2. developing Work in progress labels Sep 8, 2024
@skjnldsv skjnldsv force-pushed the fix/hide-download-correctly branch 2 times, most recently from 8f0dfcc to 4263b72 Compare September 15, 2024 09:27
@nextcloud-command nextcloud-command force-pushed the fix/hide-download-correctly branch from 4263b72 to 86f71c2 Compare September 15, 2024 09:38
@skjnldsv skjnldsv force-pushed the fix/hide-download-correctly branch from 86f71c2 to 8659a4c Compare September 15, 2024 09:58
Base automatically changed from fix/hide-download-correctly to master September 15, 2024 10:56
An error occurred while trying to automatically change base from fix/hide-download-correctly to master September 15, 2024 10:56
@susnux susnux marked this pull request as ready for review October 28, 2024 18:44
This was possible on Nextcloud 30 and previous due to a "bug":
The `download` permission was simply not rejected for public shares,
just a `hide` flag was set on the public share.

Now the permissions are correctly set, so loading a preview is not possible.
The work-around is to allow previews when the correct header is set.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the fix/bring-back-no-download-shares branch from ad15a91 to ef4dc7d Compare October 29, 2024 09:27
@susnux susnux added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants