Project

General

Profile

Actions

Bug #26852

open

Rest API Error 500 when not authorized

Added by Vincent MEMBRÉ 5 days ago. Updated about 14 hours ago.

Status:
Pending release
Priority:
N/A
Category:
API
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:
No

Description

API should send a 403 error instead of 500 error when the api does not the rights to access this api

error message example:

{
"action": "getTokenFeatureStatus",
"result": "error",
"errorDetails": "Authorization error: User 'deployer_read_user' is not allowed to access GET secure/api/user/api/token/status"
}


Files

clipboard-202505051051-yyupw.png (53.8 KB) clipboard-202505051051-yyupw.png Clark ANDRIANASOLO, 2025-05-05 10:51
Actions

Also available in: Atom PDF