Defect #10085

500 Server error when invalid assigned_to_id parameter passed

Added by James Kyle over 1 year ago. Updated over 1 year ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:REST API
Target version:-
Affected version:1.2.2 Resolution:Cant reproduce

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.

History

#1 Updated by Jean-Philippe Lang over 1 year ago

According to RFC2616:

500 Internal Server Error:
The server encountered an unexpected condition which prevented it from fulfilling the request.

That seems appropriate :-)

#2 Updated by Jean-Philippe Lang over 1 year ago

  • Resolution set to Cant reproduce

That said, I can't reproduce. I'm getting a 200 reponse with an empty result set.

Also available in: Atom PDF