Modify ↓
Opened 16 years ago
Closed 16 years ago
#3449 closed defect (duplicate)
mastertickets.webui causes genshi traceback
Reported by: | Owned by: | Noah Kantrowitz | |
---|---|---|---|
Priority: | normal | Component: | MasterTicketsPlugin |
Severity: | blocker | Keywords: | postgres, i18n |
Cc: | Trac Release: | 0.11 |
Description
When I enable mastertickets.web_ui on an OpenSuse 11.0 install I get the following traceback in my browser when I try to view a ticket.
Traceback (most recent call last): File "/usr/local/lib/python2.5/site-packages/Trac-0.11-py2.5.egg/trac/web/api.py", line 339, in send_error 'text/html') File "/usr/local/lib/python2.5/site-packages/Trac-0.11-py2.5.egg/trac/web/chrome.py", line 726, in render_template stream.render(method, doctype=doctype, out=buffer) File "build/bdist.linux-i686/egg/genshi/core.py", line 179, in render return encode(generator, method=method, encoding=encoding, out=out) File "build/bdist.linux-i686/egg/genshi/output.py", line 57, in encode for chunk in iterator: File "build/bdist.linux-i686/egg/genshi/output.py", line 307, in __call__ for kind, data, pos in stream: File "build/bdist.linux-i686/egg/genshi/output.py", line 749, in __call__ for kind, data, pos in stream: File "build/bdist.linux-i686/egg/genshi/output.py", line 588, in __call__ for kind, data, pos in stream: File "build/bdist.linux-i686/egg/genshi/output.py", line 703, in __call__ text = mjoin(textbuf, escape_quotes=False) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1520: ordinal not in range(128)
According to the Genshi-FAQ this is not a genshi problem.
Versions: Python 2.5.2, Trac 0.11, Genshi 0.5.1 or Genshi 0.6dev_r914, MasterTicketsPlugin-2.1.2, postgresql 8.3.1.
An earlier install on a previous version of OpenSuse (Python 2.5.1, Trac 0.11, Genshi 0.6dev_r884, MasterTicketsPlugin-2.1.2, postgresql 8.2.6) did not show that problem.
Just an idea: As the computer (hopefully) uses utf-8 and locale de_DE-utf8 throughout the system could this be caused by umlauts from the error message caused by #2658 ?
Attachments (0)
Change History (2)
comment:1 Changed 16 years ago by
Keywords: | postgres i18n added; web_ui genshi removed |
---|---|
Trac Release: | 0.10 → 0.11 |
Note: See
TracTickets for help on using
tickets.
ok, I've patched model.py according to #2658 (see below). This seems to fix the problem for me.