Edgewall Software
Modify

Opened 14 years ago

Closed 13 years ago

#9565 closed defect (cantfix)

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

Reported by: admin Owned by:
Priority: normal Milestone:
Component: general Version: 0.11.7
Severity: normal Keywords: needinfo
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christian Boos)

How to Reproduce

While doing a POST operation on /newticket, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'__FORM_TOKEN': u'22c6b2179eb25d2064c81863',
 'field_description': u'Google analytic setup',
 'field_drp_resources': u'',
 'field_milestone': u'milestone1',
 'field_owner': u'Tina Juul M\xf8ller-Nielsen',
 'field_remaining_time': u'3',
 'field_reporter': u'admin',
 'field_sprint': u'T2T sprint 1',
 'field_summary': u'Ticket2Travel',
 'field_type': u'task',
 'submit': u'Create ticket'}

User Agent was: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8

System Information

Trac 0.11.7
Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)]
setuptools 0.6c9
SQLite 3.3.4
pysqlite 2.3.2
Genshi 0.5.1
Subversion 1.5.6 (r36142)
Agilo 1.3.0.3-pro
jQuery: 1.2.6

Python Traceback

Traceback (most recent call last):
  File "C:\Agilo Installer\Agilo\lib\site-packages\trac-0.11.7-py2.5-win32.egg\trac\web\main.py", line 450, in _dispatch_request
  File "C:\Agilo Installer\Agilo\lib\site-packages\trac-0.11.7-py2.5-win32.egg\trac\web\main.py", line 252, in dispatch
  File "C:\Agilo Installer\Agilo\lib\site-packages\trac-0.11.7-py2.5-win32.egg\trac\web\api.py", line 49, in __init__
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf8' in position 22: ordinal not in range(128)

Attachments (0)

Change History (2)

comment:1 by Christian Boos, 14 years ago

Keywords: needinfo added

If the error is reproducible, it would be interesting that you modify the line 252 to add the to_unicode(e) conversion, the same way it is done line 248, then see what the actual error was.

See source:tags/trac-0.11.7/trac/web/main.py@#L252.

comment:2 by Christian Boos, 13 years ago

Description: modified (diff)
Resolution: cantfix
Status: newclosed

No feedback in more than 3 months, closing.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) 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.