Edgewall Software
Modify

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#11242 closed defect (cantfix)

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

Reported by: rodrigo.martim Owned by:
Priority: normal Milestone:
Component: general Version: 0.12.3
Severity: normal Keywords:
Cc: support@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

While doing a GET operation on /backlog/Product Backlog/global, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'format': u'csv', 'name': u'Product Backlog', 'scope': u'global'}

User agent: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36

System Information

Trac 0.12.3
Trac 0.12.3
Agilo 0.9.6.2
Babel 0.9.5
Docutils 0.7
Genshi 0.6
mod_wsgi 2.5 (WSGIProcessGroup trac_wsgi_02 WSGIApplicationGroup %{GLOBAL})
Pygments 1.4dev-20110115
pysqlite 2.4.1
Python 2.5.2 (r252:60911, Jan 24 2010, 18:02:01)
[GCC 4.3.2]
Python 2.5.2 (r252:60911, Jan 24 2010, 18:02:01)
[GCC 4.3.2]
pytz 2008c
pytz 2008c
RPC 1.1.2
setuptools 0.6c12
setuptools 0.6c12
SQLite 3.7.3
Subversion 1.7.8 (r1419691)
jQuery 1.4.4

Enabled Plugins

agilo 0.9.6.2
TracAnnouncer 0.12.1.dev
tracrpc.changeset N/A
TracXMLRPC 1.1.2

Python Traceback

Traceback (most recent call last):
  File "/usr/local/lib/python2.5/site-packages/Trac-0.12.3-py2.5.egg/trac/web/main.py", line 522, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.12.3-py2.5.egg/trac/web/main.py", line 243, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/local/lib/python2.5/site-packages/agilo-0.9.6.2-py2.5.egg/agilo/api/view.py", line 155, in process_request
    return self._call_filters_and_handler(req, handler)
  File "/usr/local/lib/python2.5/site-packages/agilo-0.9.6.2-py2.5.egg/agilo/api/view.py", line 143, in _call_filters_and_handler
    data = handler(req) or {}
  File "/usr/local/lib/python2.5/site-packages/agilo-0.9.6.2-py2.5.egg/agilo/scrum/backlog/web_ui.py", line 321, in do_get
    send_backlog_as(self.env, req, backlog, req.args['format'])
  File "/usr/local/lib/python2.5/site-packages/agilo-0.9.6.2-py2.5.egg/agilo/scrum/backlog/csv_export.py", line 50, in send_backlog_as
    mime.send_converted(req, BACKLOG_CONVERSION_KEY, backlog, format, filename=backlog.scope)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.12.3-py2.5.egg/trac/mimeview/api.py", line 983, in send_converted
    content, selector)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.12.3-py2.5.egg/trac/mimeview/api.py", line 682, in convert_content
    output = converter.convert_content(req, mimetype, content, ck)
  File "/usr/local/lib/python2.5/site-packages/agilo-0.9.6.2-py2.5.egg/agilo/scrum/backlog/csv_export.py", line 66, in convert_content
    return self.export_csv(req, backlog, mimetype='text/csv')
  File "/usr/local/lib/python2.5/site-packages/agilo-0.9.6.2-py2.5.egg/agilo/scrum/backlog/csv_export.py", line 103, in export_csv
    self._export_ticket(req, ticket, writer, field_names)
  File "/usr/local/lib/python2.5/site-packages/agilo-0.9.6.2-py2.5.egg/agilo/scrum/backlog/csv_export.py", line 90, in _export_ticket
    cols.append(str(value).encode('utf-8'))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 51: ordinal not in range(128)

Attachments (0)

Change History (2)

comment:1 by Jun Omae, 10 years ago

Cc: support@… added
Resolution: cantfix
Status: newclosed

comment:2 by stefano.rago@…, 10 years ago

@jomae: thanks for the cc!
@reporter: please write to the Agilo Software Support Team (support@… - http://agilosoftware.com/customer-feedback/)

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.