couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Hammond (JIRA)" <>
Subject [jira] Updated: (COUCHDB-457) Database crash with possibly non-UTF-8 document content
Date Fri, 07 Aug 2009 07:15:14 GMT


Mark Hammond updated COUCHDB-457:


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:

doc is
Traceback (most recent call last):
  File "", line 14, in <module>
    print "doc is", db["test"]
  File "couchdb-0.5-py2.6.egg\couchdb\", line 288, in __getitem__
    resp, data = self.resource.get(id)
  File "couchdb-0.5-py2.6.egg\couchdb\", line 837, in get
    return self._request('GET', path, headers=headers, **params)
  File "couchdb-0.5-py2.6.egg\couchdb\", 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:
>             Project: CouchDB
>          Issue Type: Bug
>    Affects Versions: 0.9.1
>            Reporter: James William Dumay
>         Attachments:, watercooler.couch
> See the document with the id "" in the attached

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

View raw message