Skip to content

Conversation

@AIlkiv
Copy link
Contributor

@AIlkiv AIlkiv commented Feb 16, 2025

  • Resolves: #

Summary

If you make a public share with the “hide download” option, the download button is hidden, but the direct link allows you to get the file.

This fix fixes it.

I understand that there are different ways to download a file. The point here is to reduce the number of such places.

TODO

Checklist

@susnux
Copy link
Contributor

susnux commented Feb 16, 2025

This is not fully true as hide download and forbid download are two distinct permissions on Nextcloud.

@AIlkiv
Copy link
Contributor Author

AIlkiv commented Feb 17, 2025

This is not fully true as hide download and forbid download are two distinct permissions on Nextcloud.

@susnux
I think that these are not different options, but a conflict in implementation. Because one option is used for sharing between users, and the other for public links.

In any case, as I wrote in the description, this is not a solution to a global issue, this fix reduces the number of problematic places.

@susnux
Copy link
Contributor

susnux commented Feb 17, 2025

I think that these are not different options, but a conflict in implementation. Because one option is used for sharing between users, and the other for public links.

They are. There is hideDownload on the share and there is the download permissions attribute on the share.
The hideDownload flag is not intended to prevent downloading it only hides the UI buttons.

In any case, as I wrote in the description, this is not a solution to a global issue, this fix reduces the number of problematic places.

But this is checking the wrong permission.

@AIlkiv
Copy link
Contributor Author

AIlkiv commented Feb 17, 2025

When creating a share link, there is no option to “Allow download”

image

@susnux
Copy link
Contributor

susnux commented Feb 18, 2025

Thats right, because public shares and internal shares have two different download permissions:
Something discussed here: #46256

@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2025

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants