Modify ↓
Opened 19 years ago
Closed 19 years ago
#250 closed defect (fixed)
Exception while registering an account
Reported by: | Owned by: | Alec Thomas | |
---|---|---|---|
Priority: | normal | Component: | TracHacks |
Severity: | normal | Keywords: | |
Cc: | Trac Release: |
Description
Steps to re-produce:
- Go to register page.
- 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)
Note: See
TracTickets for help on using
tickets.
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.