Issue #316: TypeError("Unicode-objects must be encoded before hashing") (conservancy/kallithea)
wisekaa03
issues-reply at bitbucket.org
Mon May 7 15:41:51 UTC 2018
New issue 316: TypeError("Unicode-objects must be encoded before hashing")
https://bitbucket.org/conservancy/kallithea/issues/316/typeerror-unicode-objects-must-be-encoded
wisekaa03:
What is it ?
2018-05-07 18:34:08.877 INFO [kallithea.lib.base] IP: 46.18.200.242 User: <AuthUser('id:1[default] auth:True')> accessed /_admin/register
Error - <type 'exceptions.TypeError'>: Unicode-objects must be encoded before hashing
URL: http://git.kngk.org/_admin/register
File '/usr/local/lib/python2.7/site-packages/weberror/errormiddleware.py', line 171 in __call__
app_iter = self.application(environ, sr_checker)
File '/usr/local/lib/python2.7/site-packages/kallithea/lib/middleware/sessionmiddleware.py', line 62 in __call__
return self.wrap_app(environ, session_start_response)
File '/usr/local/lib/python2.7/site-packages/routes/middleware.py', line 131 in __call__
response = self.app(environ, start_response)
File '/usr/local/lib/python2.7/site-packages/pylons/wsgiapp.py', line 103 in __call__
response = self.dispatch(controller, environ, start_response)
File '/usr/local/lib/python2.7/site-packages/pylons/wsgiapp.py', line 313 in dispatch
return controller(environ, start_response)
File '/usr/local/lib/python2.7/site-packages/kallithea/lib/base.py', line 446 in __call__
return WSGIController.__call__(self, environ, start_response)
File '/usr/local/lib/python2.7/site-packages/pylons/controllers/core.py', line 214 in __call__
response = self._dispatch_call()
File '/usr/local/lib/python2.7/site-packages/pylons/controllers/core.py', line 164 in _dispatch_call
response = self._inspect_call(func)
File '/usr/local/lib/python2.7/site-packages/pylons/controllers/core.py', line 107 in _inspect_call
result = self._perform_call(func, args)
File '/usr/local/lib/python2.7/site-packages/pylons/controllers/core.py', line 57 in _perform_call
return func(**args)
File '<decorator-gen-2>', line 2 in register
File '/usr/local/lib/python2.7/site-packages/kallithea/lib/auth.py', line 857 in __wrapper
return func(*fargs, **fkwargs)
File '/usr/local/lib/python2.7/site-packages/kallithea/controllers/login.py', line 151 in register
UserModel().create_registration(form_result)
File '/usr/local/lib/python2.7/site-packages/kallithea/model/user.py', line 186 in create_registration
new_user = self.create(form_data)
File '/usr/local/lib/python2.7/site-packages/kallithea/model/user.py', line 92 in create
v = get_crypt_password(v)
File '/usr/local/lib/python2.7/site-packages/kallithea/lib/auth.py', line 136 in get_crypt_password
return KallitheaCrypto.hash_string(password)
File '/usr/local/lib/python2.7/site-packages/kallithea/lib/auth.py', line 110 in hash_string
return bcrypt.hashpw(str_, bcrypt.gensalt(10))
File '/usr/local/lib/python2.7/site-packages/bcrypt/__init__.py', line 62 in hashpw
raise TypeError("Unicode-objects must be encoded before hashing")
TypeError: Unicode-objects must be encoded before hashing
```
More information about the kallithea-general
mailing list