Modify

Opened 8 years ago

Closed 7 years ago

Last modified 4 years ago

#5973 closed defect (fixed)

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

Reported by: anonymous Owned by: Björn Harrtell
Priority: normal Component: GridModifyPlugin
Severity: normal Keywords:
Cc: sth@…, eduardo.jose.pereira@… 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 (0)

Change History (7)

comment:1 Changed 7 years ago by eduardo.jose.pereira@…

Cc: eduardo.jose.pereira@… added

Is there a workaround for this problem?

comment:2 Changed 7 years ago by anonymous

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

comment:3 Changed 7 years ago by anonymous

Summary: Fatal error while saving changesFatal 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.

comment:4 Changed 7 years ago by anonymous

Summary: Fatal error while saving changes (unicode encode error, i.e affects non-ascii users)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

comment:5 Changed 7 years ago by anonymous

Owner: changed from Abbywinters.com WebDev to anonymous
Status: newassigned

comment:6 Changed 7 years ago by Björn Harrtell

Owner: changed from anonymous to Björn Harrtell
Status: assignednew

comment:7 Changed 7 years ago by Björn Harrtell

Resolution: fixed
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Björn Harrtell.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.