couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Joseph Davis (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (COUCHDB-1031) Able to PUT a JSON document containing invalid UTF-8 characters
Date Thu, 20 Jan 2011 01:15:45 GMT

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

Paul Joseph Davis resolved COUCHDB-1031.
----------------------------------------

    Resolution: Duplicate

This is a duplicate of COUCHDB-875 which has already been fixed. Luckily I remembered this
even though someone who will remain anonymous (Adam Kocoloski) forgot to backport this change.

This will make it to 1.0.2 which I'm just this moment going to restart preparing.

> 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, smallbad.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