You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
API requests for an non-existent resources should return 404 #5939
If a resource doesn't exist then the API request should return a 404
we don't want to expose the existence of resources if a user has no access to them, so we return a 404 Not Found instead of a 403 Forbidden.
Steps
Scenario Outline: user other than the admin tries to add user to a nonexistent group
Non-admin user trying to add user to non-existent group returns 403 Forbidden 👍
Admin user trying to add user to non-existent group returns 404 Not found 👍
Activity
amrita-shrestha commentedon Mar 27, 2023
discussed in #5742 (comment)
saw-jan commentedon Jul 18, 2024
Non-admin user trying to add user to non-existent group returns
403 Forbidden👍Admin user trying to add user to non-existent group returns
404 Not found👍