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 #1

Updated by Vincent MEMBRÉ 5 days ago

  • Status changed from New to In progress
  • Assignee set to Vincent MEMBRÉ
Actions #2

Updated by Vincent MEMBRÉ 5 days ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Vincent MEMBRÉ to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder/pull/6348
Actions #3

Updated by Anonymous 3 days ago

  • Status changed from Pending technical review to Pending release
Actions #4

Updated by Clark ANDRIANASOLO about 14 hours ago

fixed with a 403 return code :

Actions

Also available in: Atom PDF