Edgewall Software
Modify

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#10485 closed defect (fixed)

Genshi UnicodeDecodeError error while rendering template (unknown template location) while rendering a ticket web page

Reported by: ivanaxe@… 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 Christian Boos, 12 years ago

Milestone: 0.12.3
Owner: set to Christian Boos

Indeed!

[[Image(/home/iliabag/Desktop/Скриншоты/Настройки | Monitorium.png)]]

triggers the error.

Congrats, the first genuine unicode error since a while ;-)

Tentatively scheduling for 0.12.3.

comment:2 by Christian Boos, 12 years ago

Keywords: unicode added
Priority: highnormal
Resolution: fixed
Severity: majorminor
Status: newclosed

Fixed in r10911.

comment:3 by Stefan, 12 years ago

Version: 0.12-stable0.12.2

updated version number according to the version reported in the initial report

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.