﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
21718	AttributeError: 'NoneType' object has no attribute 'groups'	Jaeger52	stoecker	"==== How to Reproduce ====

While doing a POST operation on `/register`, Trac issued an internal error.

''(please provide additional details here)''

Request parameters:
{{{
{u'__FORM_TOKEN': u'...',
 u'action': u'create',
 u'captcha_response': u'...',
 u'email': u'...',
 u'name': u'...',
 u'password': u'...',
 u'password_confirm': u'...',
 u'sentinel': u'',
 u'sfp_email': u'',
 u'sfph_mail': u'',
 u'spf_homepage': u'',
 u'username': u'...'}
}}}

User agent: `Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0`

==== System Information ====
''Systeminformation nicht verfügbar''

==== Enabled Plugins ====
''Plugininformation nicht verfügbar''

==== Interface Customization ====
''Interface customization information not available''

==== Python Traceback ====
{{{
Traceback (most recent call last):
  File ""/usr/local/lib/python2.7/dist-packages/trac/web/main.py"", line 623, in _dispatch_request
    dispatcher.dispatch(req)
  File ""/usr/local/lib/python2.7/dist-packages/trac/web/main.py"", line 239, in dispatch
    resp = chosen_handler.process_request(req)
  File ""/usr/local/lib/python2.7/dist-packages/acct_mgr/register.py"", line 428, in process_request
    acctmgr.validate_account(req, True)
  File ""/usr/local/lib/python2.7/dist-packages/acct_mgr/api.py"", line 380, in validate_account
    self._create_user(req)
  File ""/usr/local/lib/python2.7/dist-packages/acct_mgr/api.py"", line 403, in _create_user
    overwrite=False)
  File ""/usr/local/lib/python2.7/dist-packages/acct_mgr/api.py"", line 264, in set_password
    overwrite)
  File ""/usr/local/lib/python2.7/dist-packages/acct_mgr/htfile.py"", line 48, in set_password
    self.userline(user, password),
  File ""/usr/local/lib/python2.7/dist-packages/acct_mgr/htfile.py"", line 204, in userline
    return self.prefix(user) + mkhtpasswd(password, self.hash_type)
  File ""/usr/local/lib/python2.7/dist-packages/acct_mgr/pwhash.py"", line 156, in mkhtpasswd
    return htpasswd(password, salt_)
  File ""/usr/local/lib/python2.7/dist-packages/acct_mgr/pwhash.py"", line 125, in htpasswd
    rounds, salt = from_hash(hash)
  File ""/usr/local/lib/python2.7/dist-packages/acct_mgr/pwhash.py"", line 109, in from_hash
    groups = match.groups()
AttributeError: 'NoneType' object has no attribute 'groups'
}}}"	defect	closed	normal		Trac		worksforme		
