Modify ↓
#10485 closed defect (fixed)
Genshi UnicodeDecodeError error while rendering template (unknown template location) while rendering a ticket web page
| Reported by: | Owned by: | Christian Boos | |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.12.3 |
| Component: | web frontend | Version: | 0.12.2 |
| Severity: | minor | Keywords: | unicode |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
A user managed to create a ticket that now can't be displayed. I've searched for this problem, but could not find a solution. Similar problems in different components were reported, but none in Trac[formatter].
This was found in logs :
2011-12-01 16:58:05,609 Trac[formatter] ERROR: Macro Image(/home/iliabag/Desktop/Скриншоты/Настройки | Monitorium.png) failed:
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/trac/wiki/formatter.py", line 717, in _macro_formatter
return macro.process(args, in_paragraph=True)
File "/usr/lib/python2.6/dist-packages/trac/wiki/formatter.py", line 304, in process
text = self.processor(text)
File "/usr/lib/python2.6/dist-packages/trac/wiki/formatter.py", line 291, in _macro_processor
text)
File "/usr/lib/python2.6/dist-packages/trac/wiki/macros.py", line 526, in expand_macro
result = tag.img(src=raw_url, **attr)
File "/usr/lib/pymodules/python2.6/genshi/builder.py", line 260, in __call__
self.attrib |= _kwargs_to_attrs(kwargs)
File "/usr/lib/pymodules/python2.6/genshi/builder.py", line 161, in _kwargs_to_attrs
attrs.append((QName(name), unicode(value)))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 22: ordinal not in range(128)
2011-12-01 16:58:05,611 Trac[main] WARNING: HTTPInternalError: 500 Trac Error (Genshi UnicodeDecodeError error while rendering template (unknown template location))
Debian 6.0.2 trac v.0.12.2-1 Python 2.6.7 (r267:88850, Jul 10 2011, 08:11:54)
Attachments (0)
Change History (3)
comment:1 by , 14 years ago
| Milestone: | → 0.12.3 |
|---|---|
| Owner: | set to |
comment:2 by , 14 years ago
| Keywords: | unicode added |
|---|---|
| Priority: | high → normal |
| Resolution: | → fixed |
| Severity: | major → minor |
| Status: | new → closed |
Fixed in r10911.
comment:3 by , 14 years ago
| Version: | 0.12-stable → 0.12.2 |
|---|
updated version number according to the version reported in the initial report
Note:
See TracTickets
for help on using tickets.



Indeed!
triggers the error.
Congrats, the first genuine unicode error since a while ;-)
Tentatively scheduling for 0.12.3.