couchdb-dev mailing list archives

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

     [ 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 <module>
    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.


Mime
View raw message