Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#2227 closed defect (worksforme)

oops for #1721

Reported by: Christian Boos Owned by: Jonas Borgström
Priority: high Milestone:
Component: general Version: devel
Severity: major Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

pysqlite2 (_convert_row) related:

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/web/modpython_frontend.py", line 206, in handler
    dispatch_request(mpr.path_info, mpr, env)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 139, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 107, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.3/site-packages/trac/ticket/web_ui.py", line 215, in process_request
    self._insert_ticket_data(req, db, ticket, reporter_id)
  File "/usr/lib/python2.3/site-packages/trac/ticket/web_ui.py", line 397, in _insert_ticket_data
    changelog = ticket.get_changelog(db=db)
  File "/usr/lib/python2.3/site-packages/trac/ticket/model.py", line 268, in get_changelog
    for t, author, field, oldvalue, newvalue in cursor:
  File "/usr/lib/python2.3/site-packages/trac/db.py", line 82, in __iter__
    row = self.cursor.fetchone()
  File "/usr/lib/python2.3/site-packages/trac/db.py", line 218, in fetchone
    return row and self._convert_row(row) or None
  File "/usr/lib/python2.3/site-packages/trac/db.py", line 214, in _convert_row
    return tuple([(isinstance(v, unicode) and [v.encode('utf-8')] or [v])[0]
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 32-34: invalid data

Attachments (0)

Change History (1)

comment:1 by Christian Boos, 19 years ago

Milestone: 0.9
Resolution: worksforme
Status: newclosed

The problem has been fixed by removing the offending comment on that ticket. Maybe we should check for valid UTF-8 data before writing something to the DB…

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.