#3339: UnicodeDecodeError in SpamFilter - akismet filter
---------------------+------------------------------------------------------
Reporter: cboos | Owner: jonas
Type: defect | Status: new
Priority: high | Milestone: 0.10
Component: general | Version: 0.9.5
Severity: major | Resolution:
Keywords: unicode |
---------------------+------------------------------------------------------
Comment (by cboos):
Actually, when you go to http://dev.alternc.org/trac/alternc/ticket/129,
you get the following stack trace:
{{{
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 314, in
dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 199, in
dispatch
resp = chosen_handler.process_request(req)
File "/usr/lib/python2.3/site-packages/trac/ticket/web_ui.py", line 255,
in process_request
ticket = Ticket(self.env, id, db=db)
File "/usr/lib/python2.3/site-packages/trac/ticket/model.py", line 39,
in __init__
self._fetch_ticket(tkt_id, db)
File "/usr/lib/python2.3/site-packages/trac/ticket/model.py", line 86,
in _fetch_ticket
row = cursor.fetchone()
File "/usr/lib/python2.3/site-packages/trac/db/sqlite_backend.py", line
64, in fetchone
return row and self._convert_row(row) or None
File "/usr/lib/python2.3/site-packages/trac/db/sqlite_backend.py", line
60, in _convert_row
return tuple([(isinstance(v, str) and [v.decode('utf-8')] or [v])[0]
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 26-28:
invalid data
}}}
which suggests that you have some non-UTF8 string in your database.
Try to see manually what you have there, i.e.
{{{
$ sqlite3 db/trac.db 'select * from ticket where id=129'
}}}
Note also that this problem has nothing to do with this ticket ;)
--
Ticket URL: <http://trac.edgewall.org/ticket/3339>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets