couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Seth Falcon (JIRA)" <j...@apache.org>
Subject [jira] Updated: (COUCHDB-1031) Able to PUT a JSON document containing invalid UTF-8 characters
Date Thu, 20 Jan 2011 00:21:44 GMT

     [ https://issues.apache.org/jira/browse/COUCHDB-1031?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Seth Falcon updated COUCHDB-1031:
---------------------------------

    Attachment: bad.json

> Able to PUT a JSON document containing invalid UTF-8 characters
> ---------------------------------------------------------------
>
>                 Key: COUCHDB-1031
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1031
>             Project: CouchDB
>          Issue Type: Bug
>    Affects Versions: 1.0.1
>            Reporter: Seth Falcon
>         Attachments: bad.json
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> It is possible to create a document (via curl) containing invalid UTF-8.  The document
is created, but cannot be retrieved.
> I will attach an example bad JSON file to this ticket.  The repro steps are as follows:
> couchdb - Apache CouchDB 1.0.1 (from homebrew on OSX)
> Erlang 14B
> curl -is -X PUT http://localhost:5984/bad-json/bad --data-binary @bad.json 
> HTTP/1.1 100 Continue
> HTTP/1.1 201 Created
> Server: CouchDB/1.0.1 (Erlang OTP/R14B)
> Location: http://localhost:5984/bad-json/bad
> Etag: "1-0167e886a8795380afc0d3de8922a576"
> Date: Thu, 20 Jan 2011 00:16:21 GMT
> Content-Type: text/plain;charset=utf-8
> Content-Length: 66
> Cache-Control: must-revalidate
> {"ok":true,"id":"bad","rev":"1-0167e886a8795380afc0d3de8922a576"}
> curl -is http://localhost:5984/bad-json/bad
> HTTP/1.1 500 Internal Server Error
> Server: CouchDB/1.0.1 (Erlang OTP/R14B)
> Date: Thu, 20 Jan 2011 00:16:57 GMT
> Content-Type: text/plain;charset=utf-8
> Content-Length: 53
> Cache-Control: must-revalidate
> {"error":"ucs","reason":"{bad_utf8_character_code}"}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message