Modify

Opened 8 years ago

Closed 8 years ago

#250 closed defect (fixed)

Exception while registering an account

Reported by: czhang.web@… Owned by: athomas
Priority: normal Component: TracHacks
Severity: normal Keywords:
Cc: Trac Release:

Description

Steps to re-produce:

  1. Go to register page.
  2. Click "Create account" button with or without any filled fields, and you will get exception as:
    Traceback (most recent call last):
      File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 283, in dispatch_request
        dispatcher.dispatch(req)
      File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 170, in dispatch
        resp = chosen_handler.process_request(req)
      File "build/bdist.linux-i686/egg/acct_mgr/web_ui.py", line 117, in process_request
      File "build/bdist.linux-i686/egg/acct_mgr/web_ui.py", line 124, in _do_create
      File "build/bdist.linux-i686/egg/acct_mgr/api.py", line 85, in has_user
      File "build/bdist.linux-i686/egg/acct_mgr/htfile.py", line 41, in has_user
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xec in position 0: ordinal not in range(128)
    

Attachments (0)

Change History (1)

comment:1 Changed 8 years ago by athomas

  • Resolution set to fixed
  • Status changed from new to closed

This should work now. There was a user in the htpasswd file with some unicode characters. Ideally though, AccountManagerPlugin would handle unicode account names correctly. #229 was retasked for this purpose.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.