Skip to content

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

Merged
mejo- merged 2 commits into
stable28from
backport/6019/stable28
Jul 9, 2024
Merged

[stable28] fix(ApiService): Catch NotPermittedException and return 404#6022
mejo- merged 2 commits into
stable28from
backport/6019/stable28

Conversation

@backportbot

Copy link
Copy Markdown

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>
@mejo-
mejo- merged commit cfc20c5 into stable28Jul 9, 2024
@mejo-
mejo- deleted the backport/6019/stable28 branch July 9, 2024 11:18
@AltahrimAltahrim mentioned this pull request Jul 10, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@mejo-