Edgewall Software
Modify

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#11380 closed defect (cantfix)

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

Reported by: nathanr 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.1; rv:25.0) Gecko/20100101 Firefox/25.0

System Information

Trac 0.12.3
Trac 0.12.3
Agilo 0.9.6.2
Babel 0.9.5
Docutils 0.7
FullBlog 0.1.1-r9430
Genshi 0.6
mod_wsgi 2.5 (WSGIProcessGroup trac_wsgi_05 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.8.3 (r1516576)
jQuery 1.4.4

Enabled Plugins

agilo 0.9.6.2
SecureSession 0.10dev-r1500
TracAnnouncer 0.12.1.dev
TracDiscussion 0.8-r9877
TracFullBlogPlugin 0.1.1-r9430
tracrpc.changeset N/A
TracWysiwyg 0.12.0.3-r9676
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'\xa0' in position 38: ordinal not in range(128)

Attachments (0)

Change History (2)

comment:1 by Jun Omae, 11 years ago

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

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

@jomae: thanks for the cc
@nathanr: please update to the latest version of Agilo for Trac and in case of problems, please write to support@…

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.