Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 68189 invoked from network); 7 Aug 2009 07:15:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Aug 2009 07:15:37 -0000 Received: (qmail 5722 invoked by uid 500); 7 Aug 2009 07:15:44 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 5627 invoked by uid 500); 7 Aug 2009 07:15:44 -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 5617 invoked by uid 99); 7 Aug 2009 07:15:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Aug 2009 07:15:44 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Aug 2009 07:15:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CB291234C044 for ; Fri, 7 Aug 2009 00:15:14 -0700 (PDT) Message-ID: <1112005168.1249629314817.JavaMail.jira@brutus> Date: Fri, 7 Aug 2009 00:15:14 -0700 (PDT) From: "Mark Hammond (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Updated: (COUCHDB-457) Database crash with possibly non-UTF-8 document content In-Reply-To: <1544142502.1249628115189.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Hammond updated COUCHDB-457: --------------------------------- Attachment: bad_utf.py Sorry I don't have time to dig more or convert the test-case into JS, but the attached .py file creates a document with invalid UTF8 - which could accepts, but them bombs trying to open it. The output when run is: created! doc is Traceback (most recent call last): File "bad_utf.py", line 14, in print "doc is", db["test"] File "couchdb-0.5-py2.6.egg\couchdb\client.py", line 288, in __getitem__ resp, data = self.resource.get(id) File "couchdb-0.5-py2.6.egg\couchdb\client.py", line 837, in get return self._request('GET', path, headers=headers, **params) File "couchdb-0.5-py2.6.egg\couchdb\client.py", line 895, in _request raise ServerError((status_code, error)) couchdb.client.ServerError: (500, ('ucs', '{bad_utf8_character_code}')) > Database crash with possibly non-UTF-8 document content > ------------------------------------------------------- > > Key: COUCHDB-457 > URL: https://issues.apache.org/jira/browse/COUCHDB-457 > Project: CouchDB > Issue Type: Bug > Affects Versions: 0.9.1 > Reporter: James William Dumay > Attachments: bad_utf.py, watercooler.couch > > > See the document with the id "http://www.stephenfry.com/blog/?feed=rss2" in the attached db. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.