#3940: Login on developer.wz2100.net/login fails when password contains
non-ASCII
characters
------------------------+-------------------------------------
Reporter: MrAnderson | Owner: Fastdeath
Type: bug | Status: new
Priority: normal | Milestone: unspecified
Component: Website | Version: unspecified
Keywords: | Operating System: All/Non-Specific
------------------------+-------------------------------------
My password contains an umlaut. This works fine in the forums, but on
http://developer.wz2100.net/login it leads to a crash of the backing
Python script:
{{{
Traceback (most recent call last):
File "/var/www/.virtualenvs/trac/lib/python2.7/site-
packages/trac/web/api.py", line 502, in send_error
data, 'text/html')
File "/var/www/.virtualenvs/trac/lib/python2.7/site-
packages/trac/web/chrome.py", line 955, in render_template
message = req.session.pop('chrome.%s.%d' % (type_, i))
File "/var/www/.virtualenvs/trac/lib/python2.7/site-
packages/trac/web/api.py", line 304, in __getattr__
value = self.callbacks[name](self)
File "/var/www/.virtualenvs/trac/lib/python2.7/site-
packages/trac/web/main.py", line 268, in _get_session
return Session(self.env, req)
File "/var/www/.virtualenvs/trac/lib/python2.7/site-
packages/trac/web/session.py", line 200, in __init__
if req.authname == 'anonymous':
File "/var/www/.virtualenvs/trac/lib/python2.7/site-
packages/trac/web/api.py", line 304, in __getattr__
value = self.callbacks[name](self)
File "/var/www/.virtualenvs/trac/lib/python2.7/site-
packages/trac/web/main.py", line 135, in authenticate
authname = authenticator.authenticate(req)
File "/var/www/.virtualenvs/trac/lib/python2.7/site-
packages/acct_mgr/web_ui.py", line 489, in wrap
return func(self, *args, **kwds)
File "/var/www/.virtualenvs/trac/lib/python2.7/site-
packages/acct_mgr/web_ui.py", line 510, in authenticate
user = self._remote_user(req)
File "/var/www/.virtualenvs/trac/lib/python2.7/site-
packages/acct_mgr/web_ui.py", line 790, in _remote_user
if acctmgr.check_password(user, password) == True:
File "/var/www/.virtualenvs/trac/lib/python2.7/site-
packages/acct_mgr/api.py", line 308, in check_password
valid = store.check_password(user, password)
File "/var/www/.virtualenvs/trac/lib/python2.7/site-
packages/phpbbauth/main.py", line 97, in check_password
return crypt_private(password, hashed, self.hash_prefix) == hashed
File "/var/www/.virtualenvs/trac/lib/python2.7/site-
packages/phpbbauth/phpass.py", line 121, in crypt_private
m.update(passwd)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xd6' in
position 5: ordinal not in range(128)
}}}
--
Ticket URL: <http://developer.wz2100.net/ticket/3940>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Warzone2100-project mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/warzone2100-project