-
Notifications
You must be signed in to change notification settings - Fork 23
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
API returns 404 instead of 403 Forbidden if not allowed to view #2539
Comments
Hello @FluidSense , how are you? I've been analyzing this issue. I was not able to simulate the scenario in "articles" in which I could generate 403, since I saw that all articles are open to GET. In "events", I found that if the "visible" field is false, the GET in Api is returning 404. But I didn't find any access locks so I should return 403 at some point. I would like to know what scenarios I can reproduce to find the bug :) |
Hey there, @diegofsousa I admit this is a weakly formulated issue, and it might also be two different cases. Since this touches the API, you first need to set up an OIDC-client: Setup
For events: To recreate:
For articles The steps would be:
|
Describe the bug
If a user tries to fetch an event or article from the API that they lack the permission to view, they get a 404 error.
Instead, the correct response would be 403 Forbidden ("you do not have access to this resource"). We have no reason to hide events from the API completely compared to just telling people they cannot access it.
The text was updated successfully, but these errors were encountered: