Project

General

Profile

Actions

Defect #11388

closed

Updating a version through rest API returns invalid JSON

Added by Daan Broekhof over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Category:
REST API
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

After PUTing a successful version update API request to /versions/1234.json, a response body consisting of one space is returned, while it declares itself to be 'Content-Type: application/json'.

One space (" ") is not valid JSON, so a client interpreting the response according to the content-type header will issue an error.

(reported before in #9598, but does not mention content-type clash)


Related issues

Related to Redmine - Defect #9598: JSON REST API : PUT returns one space characterClosed2011-11-18

Actions
Has duplicate Redmine - Defect #11491: JSON / XML format : delete / put dont send any dataClosed

Actions
Actions

Also available in: Atom PDF