Edgewall Software

Ticket #2529 (closed defect: worksforme)

Opened 3 years ago

Last modified 3 years ago

unicode error viewing ticket (with workaround)

Reported by: koral Owned by: jonas
Priority: normal Milestone:
Component: ticket system Version: 0.9.2
Severity: normal Keywords: unicode
Cc: koral@…

Description

after modifying some information to a ticket, that ticket page got an error showing a backtrace that lead to UnicodeDecodeError exception in db.py's _convert_row(self, row). other tickets were viewable but that one always lead to that error.

  • using the attached patch I can get the page back to work, but every commend added after the revision when problem occourred, are not shown.

this bug is nasty on our production server.
thanks for developing such a great app, we love it.

Attachments

db_unicodedecodeerror_workaround.diff (0.7 kB) - added by koral 3 years ago.

Change History

Changed 3 years ago by koral

Changed 3 years ago by koral

about the patch

note: this attachment is only a loosy workaround, since I know nothing about python and trac internals.

Changed 3 years ago by cboos

  • keywords unicode added
  • status changed from new to closed
  • resolution set to worksforme

You somehow managed to get non-UTF8 encoded data in your database... With the recent switch to unicode, the proposed patch is not relevant anymore, so I'm closing this report.

I'd suggest that you track down the reason why non-UTF-8 encoded data made it into your database, and that you manually remove/fix the offending content. This might be related to #1310...

Add/Change #2529 (unicode error viewing ticket (with workaround))

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.