Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 89485 invoked from network); 20 Jan 2011 01:16:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Jan 2011 01:16:07 -0000 Received: (qmail 5161 invoked by uid 500); 20 Jan 2011 01:16:07 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 5037 invoked by uid 500); 20 Jan 2011 01:16:06 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 5027 invoked by uid 99); 20 Jan 2011 01:16:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jan 2011 01:16:06 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jan 2011 01:16:05 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0K1Fj8Y010424 for ; Thu, 20 Jan 2011 01:15:45 GMT Message-ID: <27180534.71731295486145364.JavaMail.jira@thor> Date: Wed, 19 Jan 2011 20:15:45 -0500 (EST) From: "Paul Joseph Davis (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Resolved: (COUCHDB-1031) Able to PUT a JSON document containing invalid UTF-8 characters In-Reply-To: <25420941.70091295482783806.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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.