Edgewall Software

Ticket #7325 (closed defect: duplicate)

Opened 6 months ago

Last modified 6 weeks ago

Decode Error of 'ascii' codec: ordinal not in range

Reported by: jplass Owned by: cboos
Priority: normal Milestone:
Component: rendering Version: 0.11rc2
Severity: normal Keywords: unicode verify
Cc:

Description

Hello,

the following is a traceback of my recent trac installation. The error occurs when opening the "Roadmap" or the "New Ticket" view on a fresh trac install (empty database):

Traceback (most recent call last):
  File "c:\xxx\trac\template2\python25\lib\site-packages\trac-0.11rc2-py2.5.egg\trac\web\api.py", line 339, in send_error
    'text/html')
  File "c:\xxx\trac\template2\python25\lib\site-packages\trac-0.11rc2-py2.5.egg\trac\web\chrome.py", line 726, in render_template
    stream.render(method, doctype=doctype, out=buffer)
  File "build\bdist.win32\egg\genshi\core.py", line 179, in render
    return encode(generator, method=method, encoding=encoding, out=out)
  File "build\bdist.win32\egg\genshi\output.py", line 61, in encode
    for chunk in iterator:
  File "build\bdist.win32\egg\genshi\output.py", line 311, in __call__
    for kind, data, pos in stream:
  File "build\bdist.win32\egg\genshi\output.py", line 753, in __call__
    for kind, data, pos in stream:
  File "build\bdist.win32\egg\genshi\output.py", line 592, in __call__
    for kind, data, pos in stream:
  File "build\bdist.win32\egg\genshi\output.py", line 707, in __call__
    text = mjoin(textbuf, escape_quotes=False)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xfc in position 1695: ordinal not in range(128)

This happens for:

   Trac 0.11rc1 and rc2
   Genshi 0.5 and 0.4.4
   Pygments 0.10

The installation is on windows XP. I tried both, native windows and installation via cygwin - same result. If you need more info I'll be happy to provide it, just state what you need or how I can assist to "trac" this down. Also I'm not sure if this isn't really a Genshi problem, so if you prefer to see this report in the Genshi context please tell me.

Johannes

Attachments

Change History

follow-up: ↓ 2   Changed 6 months ago by jonas

What database are you using?

in reply to: ↑ 1   Changed 6 months ago by anonymous

Replying to jonas:

What database are you using?

I'm using sqlite3, freshly downloaded from the homepage. Webserver is tracd, python is 2.5.2.

follow-up: ↓ 5   Changed 5 months ago by jplass

  • status changed from new to closed
  • resolution set to wontfix

The bug was caused by using a german umlaut in a user's fullname.

  Changed 5 months ago by osimons

  • keywords needinfo added
  • status changed from closed to reopened
  • resolution wontfix deleted
  • milestone changed from 0.11.1 to 0.11.2

Hang on a second... Trac should really support full names being non-ascii.

Could you provide a bit more insight into where that name originated? Is the name entered through 'Preferences' as part of storing session, or provided by whatever authentication mechanism you use? What do you use for user management/authentication?

There are some older tickets related to non-ascii for login, but haven't seen that the full name should be a problem - unless you use LDAP which I think uses some login->name mechanism.

Regardless, it is not a wontfix. It may well be a duplicate, or possibly some new issue we need to look into.

in reply to: ↑ 3   Changed 6 weeks ago by cboos

  • keywords unicode verify added; needinfo removed
  • milestone changed from 0.11-retriage to 0.11.3

Replying to jplass:

The bug was caused by using a german umlaut in a user's fullname.

Need to verify this.

  Changed 6 weeks ago by cboos

Also, were you using any plugin (th:AccountManagerPlugin, or the LDAP plugin or Apache's autnz_ldap module)?

Possibly related: #6318 (suggests authnz_ldap being involved), #7287.

  Changed 6 weeks ago by cboos

  • status changed from reopened to closed
  • resolution set to duplicate
  • milestone 0.11.3 deleted

Well, actually #6318 has a backtrace. I'm pretty sure it's the same issue. Closing this one as duplicate.

Add/Change #7325 (Decode Error of 'ascii' codec: ordinal not in range)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from cboos. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.