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

Block file access for secure view #2776

Merged
merged 3 commits into from
Dec 21, 2022
Merged

Block file access for secure view #2776

merged 3 commits into from
Dec 21, 2022

Conversation

juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Aug 3, 2022

Addresses the prevent download share permission added with nextcloud/server#32482

For now we block access through text fully

Screenshot 2022-08-03 at 12 51 29

@juliusknorr juliusknorr marked this pull request as draft August 3, 2022 11:42
@juliusknorr juliusknorr added enhancement New feature or request 2. developing labels Aug 3, 2022
@juliusknorr
Copy link
Member Author

/backport to stable24

Copy link
Collaborator

@max-nextcloud max-nextcloud left a 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.

@juliusknorr
Copy link
Member Author

Rebased and pushed a small cypress test.

@cypress
Copy link

cypress bot commented Dec 20, 2022



Test summary

116 0 0 0Flakiness 1


Run details

Project Text
Status Passed
Commit 1edacdf
Started Dec 21, 2022 6:59 AM
Ended Dec 21, 2022 7:04 AM
Duration 05:05 💡
OS Linux Ubuntu -
Browser Electron 106

View run in Cypress Dashboard ➡️


Flakiness

cypress/e2e/nodes/Mentions.spec.js Flakiness
1 Test mentioning users > Select a user will insert the mention

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

Copy link
Collaborator

@max-nextcloud max-nextcloud left a 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.

@max-nextcloud
Copy link
Collaborator

/compile

juliusknorr and others added 3 commits December 21, 2022 07:56
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>
@max-nextcloud
Copy link
Collaborator

/backport to stable25

@max-nextcloud max-nextcloud merged commit a436756 into master Dec 21, 2022
@delete-merged-branch delete-merged-branch bot deleted the enh/secure-view branch December 21, 2022 07:10
@backportbot-nextcloud
Copy link

The backport to stable24 failed. Please do this backport manually.

@backportbot-nextcloud
Copy link

The backport to stable25 failed. Please do this backport manually.

@max-nextcloud

This comment was marked as outdated.

@max-nextcloud

This comment was marked as outdated.

@max-nextcloud
Copy link
Collaborator

/backport af55553 to stable24

@max-nextcloud
Copy link
Collaborator

/backport af55553 to stable25

@backportbot-nextcloud
Copy link

The backport to stable24 failed. Please do this backport manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants