Edgewall Software

Ticket #6318 (new defect)

Opened 13 months ago

Last modified 4 weeks ago

Error when login name has non-ascii characters

Reported by: kloining@… Owned by: jonas
Priority: normal Milestone: 0.11.3
Component: general Version:
Severity: major Keywords: verify
Cc:

Description

"Everything" is set to UTF-8, but trac returns error error when login name has non-ascii characters.

raceback (most recent call last):
  File "/var/lib/python-support/python2.4/trac/web/main.py", line 406, in dispatch_request
    dispatcher.dispatch(req)
  File "/var/lib/python-support/python2.4/trac/web/main.py", line 183, in dispatch
    req.perm = PermissionCache(self.env, req.authname)
  File "/var/lib/python-support/python2.4/trac/perm.py", line 263, in __init__
    self.perms = PermissionSystem(env).get_user_permissions(username)
  File "/var/lib/python-support/python2.4/trac/perm.py", line 227, in get_user_permissions
    for perm in self.store.get_user_permissions(username):
  File "/var/lib/python-support/python2.4/trac/perm.py", line 117, in get_user_permissions
    if user in subjects:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 10: ordinal not in range(128)

Attachments

Change History

  Changed 13 months ago by cboos

  • keywords verify added
  • severity changed from normal to major
  • milestone set to 0.11.1
  • What version of Trac are you using?
  • Which web front-end do you use?

follow-up: ↓ 3   Changed 13 months ago by kloining@…

I'm using version 0.10.4 "from" Debian Lenny(testing).

Is this the thing you mean about web front-end?: default_handler = WikiModule? I've changed nothing since install.

in reply to: ↑ 2   Changed 13 months ago by eblot

Replying to kloining@powadezign.no:

Is this the thing you mean about web front-end?:

One of the following:

  • mod_python
  • tracd
  • cgi /fastcgi

follow-up: ↓ 5   Changed 13 months ago by eblot

I meant, one among the following web front-ends

in reply to: ↑ 4   Changed 13 months ago by Kristian Løining <kloining@…>

Replying to eblot:

I meant, one among the following web front-ends

Ah. I first started with CGI, and are now using mod_python. Both returned same error.

  Changed 9 months ago by hans@…

I just want to confirm this.

I'm using Trac 0.10.4, Apache 2.2.8, mod_python

Apache uses authnz_ldap to authenticate users from a w2k3 active directory server. The login-username gets replaced by the real name of the user, by using the AuthLDAPRemoteUserAttribute displayName option in authnz_ldap. (That's really nice feature by the way!)

Trac breaks with the same error/traceback as the OP posted above, when the real name contains non-7bits-ascii characters.

  Changed 6 weeks ago by osimons

#7714 closed as duplicate.

  Changed 4 weeks ago by cboos

  • milestone changed from 0.11-retriage to 0.11.3

#7325 closed as duplicate. There it mentions that the problem happens with tracd on windows, so it should be pretty easy for me to reproduce ;-)

Add/Change #6318 (Error when login name has non-ascii characters)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from jonas. Next status will be 'new'
The owner will change from jonas to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.