Ticket #5973 (closed defect: fixed)

Opened 4 years ago

Last modified 7 months ago

Cannot handle Trac databases with non-ascii (unable to save changes on any ticket containing non-ascii chars)

Reported by: anonymous Assigned to: bjornharrtell
Priority: normal Component: GridModifyPlugin
Severity: normal Keywords:
Cc: sth@shopware.ag, eduardo.jose.pereira@gmail.com Trac Release: 0.11

Description

As soon as i changed a value in ticket list, the ajax request get a failure.

Details as follows:

Oops... Traceback (most recent call last):

File "build/bdist.linux-i686/egg/gridmod/web_ui.py", line 69, in process_request

UnicodeEncodeError?: 'ascii' codec can't encode character u'\xfc' in position 22: ordinal not in range(128)

Attachments

Change History

02/19/10 15:29:14 changed by eduardo.jose.pereira@gmail.com

  • cc changed from sth@shopware.ag to sth@shopware.ag, eduardo.jose.pereira@gmail.com.

Is there a workaround for this problem?

03/01/10 12:42:44 changed by anonymous

Got the same issue, but cannot reproduce it reliably :/

03/02/10 22:40:01 changed by anonymous

  • summary changed from Fatal error while saving changes to Fatal error while saving changes (unicode encode error, i.e affects non-ascii users).

Verified now, reproducable only on tickets that have fields/data containing non-ascii characters.

Funny thing is, it's the debug logging that causes the problem. Commenting out debug log stuff in web_ui.py (specifically line 69) seem to fix the issue.

03/02/10 22:41:48 changed by anonymous

  • summary changed from Fatal error while saving changes (unicode encode error, i.e affects non-ascii users) to Cannot handle Trac databases with non-ascii (unable to save changes on any ticket containing non-ascii chars).

Changed summary to better describe the problem

08/01/10 18:42:57 changed by anonymous

  • owner changed from abbywinterscom to anonymous.
  • status changed from new to assigned.

08/01/10 18:45:55 changed by bjornharrtell

  • owner changed from anonymous to bjornharrtell.
  • status changed from assigned to new.

08/02/10 12:55:16 changed by bjornharrtell

  • status changed from new to closed.
  • resolution set to fixed.

(In [8327]) Replaced string concatenation with substuition for the logging (closes #5973)


Add/Change #5973 (Cannot handle Trac databases with non-ascii (unable to save changes on any ticket containing non-ascii chars))




Change Properties
Action