Actions
Defect #10085
closed500 Server error when invalid assigned_to_id parameter passed
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Cant reproduce
Affected version:
Description
Redmine 1.2.2
Example:
curl -k -IL -H"X-Redmine-API-Key:$apikey" "https://${url}/issues.json?limit=1&project_id=94&status_id=closed&assigned_to_id=jkyle"
'jkyle' is an invalid value as assigned_to_id requires a int. But it appears this is unhanded as the response is
Content-Length: 1
Status: 500
Connection: close
Content-Type: application/json; charset=utf-8
If strict typing is enforced, I'd expect a 400. Otherwise a 404.
Actions