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

[stable28] fix(ApiService): Catch NotPermittedException and return 404 #6022

Merged
merged 2 commits into from
Jul 9, 2024

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Jul 9, 2024

Backport of PR #6019

mejo- added 2 commits July 9, 2024 10:24
Signed-off-by: Jonas <jonas@freesources.org>
Also adjust 404 error message in create api function in case of
NotPermittedException. We don't want to distinguish between missing
permissions and nonexisting files to not reveal that the file exists.

Signed-off-by: Jonas <jonas@freesources.org>
@backportbot backportbot bot requested review from juliusknorr and mejo- July 9, 2024 10:24
@backportbot backportbot bot added this to the Nextcloud 28.0.8 milestone Jul 9, 2024
@mejo- mejo- merged commit cfc20c5 into stable28 Jul 9, 2024
60 checks passed
@mejo- mejo- deleted the backport/6019/stable28 branch July 9, 2024 11:18
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.

1 participant