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.
Updated by Jean-Philippe Lang almost 13 years ago
According to RFC2616:
500 Internal Server Error:
The server encountered an unexpected condition which prevented it from fulfilling the request.
That seems appropriate :-)
Updated by Jean-Philippe Lang almost 13 years ago
- Resolution set to Cant reproduce
That said, I can't reproduce. I'm getting a 200 reponse with an empty result set.
Updated by Go MAEDA almost 8 years ago
- Status changed from New to Closed
I cannot reproduce in 3.3.
I am closing this issue.
Actions