couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michiel Meeuwissen (JIRA)" <>
Subject [jira] [Commented] (COUCHDB-1624) CouchDB shouldn't accept or serve JSON with control-characters
Date Sat, 08 Dec 2012 07:17:24 GMT


Michiel Meeuwissen commented on COUCHDB-1624:

Svenson uses the java-definition of a 'iso control character': 

 public static boolean isISOControl(int codePoint) {
        return (codePoint >= 0x0000 && codePoint <= 0x001F) || 
            (codePoint >= 0x007F && codePoint <= 0x009F);

> CouchDB shouldn't accept or serve JSON with control-characters
> --------------------------------------------------------------
>                 Key: COUCHDB-1624
>                 URL:
>             Project: CouchDB
>          Issue Type: Bug
>    Affects Versions: 1.2
>            Reporter: Nils Breunese
>         Attachments: 10571721.json,
> According to control-characters are not valid characters in JSON.
Due to a character encoding bug one of our applications was sending JSON with control-characters
to CouchDB. CouchDB happily accepts this (invalid) JSON and also serves it, but then we started
getting problems in a client that uses the Svenson JSON library which (correctly) complains
about invalid characters in the JSON served by CouchDB.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message