Hi all

I'm having trouble with Unicode characters. I've seen similar reports
everywhere but none of them looks like my problem, nor did post any
working solution for me to try.

I've updated Agilo from agilo 0.7.3.3-r1417-20090313 to 0.9.1

The problem appears where any sprint has accents on its name (as in "Térmico"):

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

Strange, on 0.7.3 this problem does not happens. Something appears to
have broken in the way to 0.9.1

I tried:
- Creating a NEW sprint with accent, to discard some upgrade problem.
Same results
- Installed Agilo PRO 1.3.1 - same results

Everything else works OK (that is, with sprints whith no accents on its name).

The system is a RHEL 5.2 up-to-date (to what RHEL understands as "up to date")

The fault happens everytime someone access any info related to a
sprint with accents on its name:

- In "Admin" --> "Sprints" whenever you try to acces the sprint, or
even delete it!
- Selecting the sprint with accents on the left menu

It *looks* like the error happens when the accented characters are in
the URL being accessed.

I have no idea on Python, sorry can't help more.

Bug report as generated by Trac follows. Thanks in advance! And sorry
for my poor english.

==== How to Reproduce ====

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


Request parameters:
{{{
{'bscope': u'28b. Algor\xedtmo T\xe9rmico',
 'name': u'Sprint Backlog',
 'scope': None}
}}}

User agent: `Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b5)
Gecko/2008042803 Red Hat/3.0b5-0.beta5.6.el5 Firefox/3.0b5`

==== System Information ====
|| '''`Trac`''' || `0.12` ||
|| '''`Agilo`''' || `0.9.1` ||
|| '''`Genshi`''' || `0.6` ||
|| '''`pysqlite`''' || `2.3.3` ||
|| '''`Python`''' || `2.4.3 (#1, Jan 14 2008, 18:32:40) ` [[br]] `[GCC
4.1.2 20070626 (Red Hat 4.1.2-14)]` ||
|| '''`setuptools`''' || `0.6c7` ||
|| '''`SQLite`''' || `3.3.6` ||
|| '''`jQuery`''' || `1.4.2` ||

==== Enabled Plugins ====
|| '''`agilo`''' || `0.9.1` ||

==== Python Traceback ====
{{{
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 513,
in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 235,
in dispatch
    resp = chosen_handler.process_request(req)
  File 
"/usr/lib/python2.4/site-packages/agilo-0.9.1-py2.4.egg/agilo/api/view.py",
line 155, in process_request
    return self._call_filters_and_handler(req, handler)
  File 
"/usr/lib/python2.4/site-packages/agilo-0.9.1-py2.4.egg/agilo/api/view.py",
line 143, in _call_filters_and_handler
    data = handler(req) or {}
  File 
"/usr/lib/python2.4/site-packages/agilo-0.9.1-py2.4.egg/agilo/scrum/backlog/web_ui.py",
line 313, in do_get
    backlog = self._get_backlog(req)
  File 
"/usr/lib/python2.4/site-packages/agilo-0.9.1-py2.4.egg/agilo/scrum/backlog/web_ui.py",
line 238, in _get_backlog
    return BacklogJSONView(self.env)._get_backlog(name=name, scope=scope)
  File 
"/usr/lib/python2.4/site-packages/agilo-0.9.1-py2.4.egg/agilo/scrum/backlog/json_ui.py",
line 49, in _get_backlog
    backlog = BacklogController(self.env).process_command(cmd_get)
  File 
"/usr/lib/python2.4/site-packages/agilo-0.9.1-py2.4.egg/agilo/api/controller.py",
line 361, in process_command
    return command.execute(self, date_converter, as_key)
  File 
"/usr/lib/python2.4/site-packages/agilo-0.9.1-py2.4.egg/agilo/api/controller.py",
line 315, in execute
    return self._execute(controller, date_converter, as_key)
  File 
"/usr/lib/python2.4/site-packages/agilo-0.9.1-py2.4.egg/agilo/scrum/backlog/controller.py",
line 51, in _execute
    scope=self.scope)
  File 
"/usr/lib/python2.4/site-packages/agilo-0.9.1-py2.4.egg/agilo/scrum/backlog/model.py",
line 574, in get
    return super(BacklogModelManager, self).get(**kwargs)
  File 
"/usr/lib/python2.4/site-packages/agilo-0.9.1-py2.4.egg/agilo/core/model.py",
line 1128, in get
    m = self.model(self.env, **kwargs)
  File 
"/usr/lib/python2.4/site-packages/agilo-0.9.1-py2.4.egg/agilo/scrum/backlog/model.py",
line 170, in __init__
    self._check_scope_is_valid(scope)
  File 
"/usr/lib/python2.4/site-packages/agilo-0.9.1-py2.4.egg/agilo/scrum/backlog/model.py",
line 183, in _check_scope_is_valid
    sprint = SprintModelManager(self.env).get(name=scope)
  File 
"/usr/lib/python2.4/site-packages/agilo-0.9.1-py2.4.egg/agilo/core/model.py",
line 1128, in get
    m = self.model(self.env, **kwargs)
  File 
"/usr/lib/python2.4/site-packages/agilo-0.9.1-py2.4.egg/agilo/scrum/sprint/model.py",
line 61, in __init__
    super(Sprint, self).__init__(env, **kwargs)
  File 
"/usr/lib/python2.4/site-packages/agilo-0.9.1-py2.4.egg/agilo/core/model.py",
line 524, in __init__
    self._load(db=db)
  File 
"/usr/lib/python2.4/site-packages/agilo-0.9.1-py2.4.egg/agilo/core/model.py",
line 726, in _load
    debug(self, "Read object from the DB! %s" % self)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xed' in
position 29: ordinal not in range(128)
}}}

-- 
------------------------------------
Nahuel Iglesias
STI Bariloche - Patagonia Argentina

-- 
Follow Agilo on Twitter: http://twitter.com/agiloforscrum
Please support us by reviewing and voting on: 
http://userstories.com/products/8-agilo-for-scrum 
http://ohloh.net/p/agilo-scrum 
http://freshmeat.net/projects/agiloforscrum

You have received this message because you are subscribed to
the "Agilo for Scrum" Google Group. This group is focused on
supporting Agilo for Scrum users and is moderated by
Agilo Software GmbH <http://www.agiloforscrum.com>.

To post to this group, send email to [email protected]
To unsubscribe from this group, send an email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/agilo

Reply via email to