id	summary	reporter	owner	description	type	status	priority	component	severity	resolution	keywords	cc	release
10765	AttributeError: 'NoneType' object has no attribute 'strip'	mbunkus	hasienda	I'm using Trac 1.0.1 with AccountManagerPlugin from today's SVN (0.11 branch, revision 12515). When a new user tries to register he sees the page asking for the user name, password and optional real name. When he fills out the form and posts it he receives the following error message:\r\n\r\n{{{\r\nAttributeError: 'NoneType' object has no attribute 'strip'\r\n}}}\r\n\r\nThe traceback from the log:\r\n\r\n{{{\r\nTraceback (most recent call last):\r\n  File "/usr/local/lib/python2.7/dist-packages/Trac-1.0.1dev_r11468-py2.7.egg/trac/web/main.py", line 497, in _dispatch_request\r\n    dispatcher.dispatch(req)\r\n  File "/usr/local/lib/python2.7/dist-packages/Trac-1.0.1dev_r11468-py2.7.egg/trac/web/main.py", line 214, in dispatch\r\n    resp = chosen_handler.process_request(req)\r\n  File "build/bdist.linux-i686/egg/acct_mgr/register.py", line 391, in process_request\r\n    acctmgr.validate_registration(req)\r\n  File "build/bdist.linux-i686/egg/acct_mgr/api.py", line 365, in validate_registration\r\n    email = req.args.get('email').strip()\r\n}}}\r\n\r\nThis is hardly surprising. The registration page offers no way of entering an email address.\r\n\r\nThere are several things to consider:\r\n 1. I've got email verification turned on in my configuration (I'll post the config below).\r\n 2. If email verification is turned on then it is imperative that the user must enter his email address during registration. However, the template simply does not offer a field for it -- nor would such a field be mandatory. The documentation doesn't mention how to handle this.\r\n 3. This happens on two different installations. Both are not new ones; they started their life with Trac 0.12 and the then-current version of this plugin.\r\n 4. Other plugins I'm running: on !one installation TracAutoCompletePlugin, on the other: NukeUserPlugin and TracTags.\r\n 5. I'm using !PostgreSQL in both installations.\r\n\r\nMy configuration:\r\n\r\n{{{\r\n[account-manager]\r\ndb_htpasswd_hash_type = sha\r\nforce_passwd_change = true\r\nhash_method = HtPasswdHashMethod\r\nhtpasswd_file = /opt/trac/kivitendo/htpasswd\r\nhtpasswd_hash_type = sha\r\nnotify_actions = \r\npassword_store = SessionStore\r\npersistent_sessions = False\r\nrefresh_passwd = true\r\nregister_check = BasicCheck, EmailCheck, UsernamePermCheck, RegExpCheck\r\nuser_lock_max_time = 0\r\nverify_email = true\r\n\r\n[components]\r\nacct_mgr.admin.accountguardadminpage = enabled\r\nacct_mgr.admin.accountmanageradminpage = enabled\r\nacct_mgr.api.accountmanager = enabled\r\nacct_mgr.db.sessionstore = enabled\r\nacct_mgr.guard.accountguard = enabled\r\nacct_mgr.htfile.abstractpasswordfilestore = disabled\r\nacct_mgr.htfile.htdigeststore = disabled\r\nacct_mgr.htfile.htpasswdstore = enabled\r\nacct_mgr.http.httpauthstore = disabled\r\nacct_mgr.notification.accountchangelistener = enabled\r\nacct_mgr.notification.accountchangenotificationadminpanel = enabled\r\nacct_mgr.pwhash.htdigesthashmethod = disabled\r\nacct_mgr.pwhash.htpasswdhashmethod = enabled\r\nacct_mgr.register.emailverificationmodule = enabled\r\nacct_mgr.register.registrationmodule = enabled\r\nacct_mgr.web_ui.loginmodule = enabled\r\n}}}\r\n	defect	closed	normal	AccountManagerPlugin	normal	fixed	email registration input	rjollos	0.11
