Opened 15 years ago

Closed 14 years ago

#2679 closed defect (duplicate)

Special characters in passwords provoke an internal error

Reported by: jeberger@… Owned by: Matt Good
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10



When adding a new user, if the password contains special characters Trac gives an internal error.

Steps to reproduce

  1. Go to the "Users" administration page;
  2. Create a new user, name="foo", pasword="é";

Version information

  • Trac: 0.10.4
  • TracAccountManager: 0.1.3dev
  • Python: 2.5
  • Firefox: on Linux

Additional information

I get the following traceback:

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/trac/web/", line 406, in dispatch_request
  File "/usr/lib/python2.5/site-packages/trac/web/", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.linux-i686/egg/webadmin/", line 119, in process_request
  File "build/bdist.linux-i686/egg/acct_mgr/", line 48, in process_admin_request
    return self._do_users(req)
  File "build/bdist.linux-i686/egg/acct_mgr/", line 95, in _do_users
    _create_user(req, self.env, check_permissions=False)
  File "build/bdist.linux-i686/egg/acct_mgr/", line 53, in _create_user
    mgr.set_password(user, password)
  File "build/bdist.linux-i686/egg/acct_mgr/", line 98, in set_password
    if self.password_store.set_password(user, password):
  File "build/bdist.linux-i686/egg/acct_mgr/", line 55, in set_password
    self.userline(user, password))
  File "build/bdist.linux-i686/egg/acct_mgr/", line 174, in userline
    return self.prefix(user) + htdigest(user, self.realm, password)
  File "build/bdist.linux-i686/egg/acct_mgr/", line 100, in htdigest
    p = ':'.join([user, realm, password])
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0: ordinal not in range(128)

Attachments (0)

Change History (1)

comment:1 Changed 14 years ago by Matt Good

Resolution: duplicate
Status: newclosed

Looks like a dup of #2327.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Matt Good.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.