Project

General

Profile

Actions

Defect #10085

closed

500 Server error when invalid assigned_to_id parameter passed

Added by James Kyle over 12 years ago. Updated over 7 years ago.

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

Also available in: Atom PDF