Modify ↓
#11984 closed defect (cantfix)
AttributeError: 'NoneType' object has no attribute 'encode'
Reported by: | michiko | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | 0.11.7 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
How to Reproduce
While doing a POST operation on /admin/accounts/users
, Trac issued an internal error.
(please provide additional details here)
Request parameters:
{'__FORM_TOKEN': u'67d5dcf7dc3abac52e12140e', 'add': u' Add ', 'cat_id': u'accounts', 'email': u'lougrillo93@gmail.com', 'name': u'Lou Grillo', 'panel_id': u'users', 'password': u'leasedim', 'password_confirm': u'leasedim', 'path_info': None, 'user': u'lougrillo93@gmail.com'}
System Information
Trac | 0.11.7
|
Python | 2.6 (r26:66714, Nov 3 2009, 17:33:18) [GCC 4.4.1 20090725 (Red Hat 4.4.1-2)]
|
setuptools | 0.6c11
|
SQLite | 3.6.20
|
pysqlite | 2.4.1
|
Genshi | 0.5.1
|
Pygments | 1.3.1
|
Subversion | 1.6.6 (r40053)
|
CustomFieldAdmin | 0.2.2
|
Python Traceback
Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 450, in _dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 206, in dispatch resp = chosen_handler.process_request(req) File "/usr/lib/python2.6/site-packages/trac/admin/web_ui.py", line 114, in process_request path_info) File "/usr/lib/python2.6/site-packages/acct_mgr/admin.py", line 117, in render_admin_panel return self._do_users(req) File "/usr/lib/python2.6/site-packages/acct_mgr/admin.py", line 185, in _do_users _create_user(req, self.env, check_permissions=False) File "/usr/lib/python2.6/site-packages/acct_mgr/web_ui.py", line 71, in _create_user mgr.set_password(user, password) File "/usr/lib/python2.6/site-packages/acct_mgr/api.py", line 128, in set_password if store.set_password(user, password): File "/usr/lib/python2.6/site-packages/acct_mgr/db.py", line 50, in set_password hash = self.hash_method.generate_hash(user, password) File "/usr/lib/python2.6/site-packages/acct_mgr/pwhash.py", line 48, in generate_hash user,password,realm = _encode(user, password, self.realm) File "/usr/lib/python2.6/site-packages/acct_mgr/pwhash.py", line 56, in _encode return [a.encode('utf-8') for a in args] AttributeError: 'NoneType' object has no attribute 'encode'
Attachments (0)
Note:
See TracTickets
for help on using tickets.
PluginIssue: AccountManagerPlguin.