Register code verification (are you a robot?) won't work

RESOLVED WORKSFORME

Status

Cloud Services
Server: Sync
--
major
RESOLVED WORKSFORME
7 years ago
7 years ago

People

(Reporter: 1of16, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

7 years ago
User-Agent:       Mozilla/5.0 (X11; Linux i686; rv:2.0b13pre) Gecko/20110322 Firefox/4.0b13pre
Build Identifier: 

I'm running your awesome python sync server, with mysql and wsgi-apache2 support. the config files are all standard, just changed them for mysql.
It was possible to register one user, there was an error with the second one.
here the error-log while I tried to verify the capcha:
[Sun Apr 03 15:30:38 2011] [error] 2011-04-03 15:30:38,250 INFO  [syncserver] 84.x.187.233 - - [03/Apr/2011:15:30:38 +0200] "GET /misc/1.0/captcha_html HTTP/1.1" 200 716 "-" "Mozilla/5.0 (Windows NT 6.1; rv:2.0) Gecko/20100101 Firefox/4.0"
[Sun Apr 03 15:30:38 2011] [error] 84.x.187.233 - - [03/Apr/2011:15:30:38 +0200] "GET /misc/1.0/captcha_html HTTP/1.1" 200 716 "-" "Mozilla/5.0 (Windows NT 6.1; rv:2.0) Gecko/20100101 Firefox/4.0"
[Sun Apr 03 15:30:52 2011] [error] 2011-04-03 15:30:52,495 ERROR [syncserver] Traceback (most recent call last):
[Sun Apr 03 15:30:52 2011] [error]   File "/var/www/weave_python/deps/server-core/services/util.py", line 452, in __call__
[Sun Apr 03 15:30:52 2011] [error]     return self.app(environ, start_response)
[Sun Apr 03 15:30:52 2011] [error]   File "/var/www/weave_python/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg/paste/translogger.py", line 68, in __call__
[Sun Apr 03 15:30:52 2011] [error]     return self.application(environ, replacement_start_response)
[Sun Apr 03 15:30:52 2011] [error]   File "/var/www/weave_python/lib/python2.6/site-packages/WebOb-1.0.6-py2.6.egg/webob/dec.py", line 147, in __call__
[Sun Apr 03 15:30:52 2011] [error]     resp = self.call_func(req, *args, **self.kwargs)
[Sun Apr 03 15:30:52 2011] [error]   File "/var/www/weave_python/lib/python2.6/site-packages/WebOb-1.0.6-py2.6.egg/webob/dec.py", line 208, in call_func
[Sun Apr 03 15:30:52 2011] [error]     return self.func(req, *args, **kwargs)
[Sun Apr 03 15:30:52 2011] [error]   File "/var/www/weave_python/deps/server-core/services/baseapp.py", line 205, in __call__
[Sun Apr 03 15:30:52 2011] [error]     result = function(request, **params)
[Sun Apr 03 15:30:52 2011] [error]   File "/var/www/weave_python/deps/server-reg/syncreg/controllers/user.py", line 215, in create_user
[Sun Apr 03 15:30:52 2011] [error]     if not self.auth.create_user(user_name, password, email):
[Sun Apr 03 15:30:52 2011] [error]   File "/var/www/weave_python/deps/server-core/services/auth/sql.py", line 123, in create_user
[Sun Apr 03 15:30:52 2011] [error]     password_hash = ssha256(password)
[Sun Apr 03 15:30:52 2011] [error]   File "/var/www/weave_python/deps/server-core/services/util.py", line 204, in ssha256
[Sun Apr 03 15:30:52 2011] [error]     ssha = base64.b64encode(sha256(password + salt).digest()
[Sun Apr 03 15:30:52 2011] [error] UnicodeEncodeError: 'ascii' codec can't encode character u'\\xe4' in position 2: ordinal not in range(128)
[Sun Apr 03 15:30:52 2011] [error] 
[Sun Apr 03 15:30:52 2011] [error] Traceback (most recent call last):
[Sun Apr 03 15:30:52 2011] [error]   File "/var/www/weave_python/deps/server-core/services/util.py", line 452, in __call__
[Sun Apr 03 15:30:52 2011] [error]     return self.app(environ, start_response)
[Sun Apr 03 15:30:52 2011] [error]   File "/var/www/weave_python/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg/paste/translogger.py", line 68, in __call__
[Sun Apr 03 15:30:52 2011] [error]     return self.application(environ, replacement_start_response)
[Sun Apr 03 15:30:52 2011] [error]   File "/var/www/weave_python/lib/python2.6/site-packages/WebOb-1.0.6-py2.6.egg/webob/dec.py", line 147, in __call__
[Sun Apr 03 15:30:52 2011] [error]     resp = self.call_func(req, *args, **self.kwargs)
[Sun Apr 03 15:30:52 2011] [error]   File "/var/www/weave_python/lib/python2.6/site-packages/WebOb-1.0.6-py2.6.egg/webob/dec.py", line 208, in call_func
[Sun Apr 03 15:30:52 2011] [error]     return self.func(req, *args, **kwargs)
[Sun Apr 03 15:30:52 2011] [error]   File "/var/www/weave_python/deps/server-core/services/baseapp.py", line 205, in __call__
[Sun Apr 03 15:30:52 2011] [error]     result = function(request, **params)
[Sun Apr 03 15:30:52 2011] [error]   File "/var/www/weave_python/deps/server-reg/syncreg/controllers/user.py", line 215, in create_user
[Sun Apr 03 15:30:52 2011] [error]     if not self.auth.create_user(user_name, password, email):
[Sun Apr 03 15:30:52 2011] [error]   File "/var/www/weave_python/deps/server-core/services/auth/sql.py", line 123, in create_user
[Sun Apr 03 15:30:52 2011] [error]     password_hash = ssha256(password)
[Sun Apr 03 15:30:52 2011] [error]   File "/var/www/weave_python/deps/server-core/services/util.py", line 204, in ssha256
[Sun Apr 03 15:30:52 2011] [error]     ssha = base64.b64encode(sha256(password + salt).digest()
[Sun Apr 03 15:30:52 2011] [error] UnicodeEncodeError: 'ascii' codec can't encode character u'\\xe4' in position 2: ordinal not in range(128)
[Sun Apr 03 15:30:52 2011] [error]

Reproducible: Always
(Reporter)

Comment 1

7 years ago
Ok, now I got the answer:
the second user was using a password with an "umlaut" (like ä, ö, ü...)....without it its working fine
Status: UNCONFIRMED → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.