Project

General

Profile

Actions

Defect #8421

closed

REST API may produce invalid json

Added by Ilya Kulakov almost 13 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Start date:
2011-05-21
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Redmine MUST produce valid json. E.g. look at the contents of http://www.redmine.org/issues/8031.json. Especially to the description field:

\"\\377\u00f4\u00ff\u00fd\" 

It contains
06
character between \u00fd and \", so if you look at this line in hex editor you'll see
"\\377\u00f4\u00ff\u00fd^F\" 

This character is not allowed by JSON standard.


Related issues

Related to Redmine - Feature #4796: Rails 3 supportClosedJean-Philippe Lang2010-02-10

Actions
Actions #1

Updated by Etienne Massip almost 13 years ago

JSON encoding is made by Rails ; JSON encoder code has changed lightly with 3.0, dunno if it'll solve this issue, though.

Actions #2

Updated by Go MAEDA over 8 years ago

  • Status changed from New to Closed
  • Resolution set to Fixed

It seems to be fixed in current versions. I found the following string in http://www.redmine.org/issues/8031.json.

\"\\377\u00f4\u00ff\u00fd\u0006\" 
Actions

Also available in: Atom PDF