Closed luiqor closed 2 days ago
Fix invalid role parameter along with valid isEdit parameter in /users/{id} causing an error:
{ "status": 500, "code": "INTERNAL_SERVER_ERROR", "message": "Cannot read property 'mainSubjects' of null" }
Invalid role causes a 422 (validation) Unprocessable Entity error:
Invalid isEdit causes a 422 (validation) Unprocessable Entity error:
Valid params:
Issues 0 New issues 0 Accepted issues
Measures 0 Security Hotspots 82.6% Coverage on New Code 0.0% Duplication on New Code
See analysis details on SonarQube Cloud
Fix invalid role parameter along with valid isEdit parameter in /users/{id} causing an error:
Result of fix
Invalid role causes a 422 (validation) Unprocessable Entity error:
Invalid isEdit causes a 422 (validation) Unprocessable Entity error:
Valid params: