-
Notifications
You must be signed in to change notification settings - Fork 95
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
Block file access for secure view #2776
Conversation
/backport to stable24 |
b1bf008
to
7872390
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good.
I think it would be good to have this covered with a test:
- It's hard to test by hand as it seems to involve issueing a curl request to remove the download permission as outlined in the linked server PR.
- It has security relevance
- We might break it accidentally at some point because it's a corner case we don't remember.
7872390
to
e4dd6aa
Compare
Rebased and pushed a small cypress test. |
Test summaryRun details
View run in Cypress Dashboard ➡️ Flakiness
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one! Thanks for adding the test.
/compile |
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
4d8c618
to
1edacdf
Compare
/backport to stable25 |
The backport to stable24 failed. Please do this backport manually. |
The backport to stable25 failed. Please do this backport manually. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
/backport af55553 to stable24 |
/backport af55553 to stable25 |
The backport to stable24 failed. Please do this backport manually. |
Addresses the prevent download share permission added with nextcloud/server#32482
For now we block access through text fully