GNOME Bugzilla – Bug 638480
Tomboy fails to authenticate
Last modified: 2011-05-09 04:16:37 UTC
Django Error Page: http://pyther.net/a/tomboy_snowy_error.html Installed Packages: local/django 1.2.4-1 local/python2 2.7.1-3 Let me know what other info is needed Full Text: Environment: Request Method: POST Request URL: https://snowy.pyther.net/oauth/request_token/ Django Version: 1.2.4 Python Version: 2.7.1 Installed Applications: ['core', 'api', 'accounts', 'django_openid_auth', 'notes', 'mobile_notes', 'export', 'django.contrib.admin', 'django.contrib.admindocs', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.humanize', 'django.contrib.messages', 'registration', 'south', 'gravatar', 'autoslug', 'piston', 'pagination'] Installed Middleware: ['django.middleware.common.CommonMiddleware', 'django.contrib.csrf.middleware.CsrfViewMiddleware', 'django.contrib.csrf.middleware.CsrfResponseMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.locale.LocaleMiddleware', 'snowy.accounts.middleware.LocaleMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'snowy.accounts.middleware.LoginRedirectMiddleware', 'django.middleware.transaction.TransactionMiddleware', 'recaptcha_django.middleware.ReCaptchaMiddleware', 'pagination.middleware.PaginationMiddleware'] Traceback:
+ Trace 225363
response = callback(request, *callback_args, **callback_kwargs)
resp = view_func(*args, **kwargs)
return view_func(*args, **kwargs)
token = oauth_server.fetch_request_token(oauth_request)
self._check_signature(oauth_request, consumer, None)
token, signature)
built = self.build_signature(oauth_request, consumer, token)
hashed = hmac.new(key, raw, sha)
return HMAC(key, msg, digestmod)
self.outer.update(key.translate(trans_5C))
Exception Value: character mapping must return integer, None or unicode
See also: http://bugs.python.org/issue5285 Looks like piston may have been relying on behavior that has since been "fixed".
Just out of curiosity, what distro / python version are you running? I'm pretty sure I've got this fixed on my laptop at home running a Fedora 14 VM with python2.7.
You'll have a patch to test out tonight.
That would be awesome. I am using django 1.2.4 and python2 2.7.1 on Arch Linux.
I'm also eagerly awaiting a patch to test. Ubuntu Natty django 1.2.3, python 2.7.1, piston 0.2.2
After encoding the key to ascii (vs unicode) and trying a fresh database + openid, it no longer causes snowy to flip out and traceback, but it says the Nonce is out of range. It will require a bit more digging.
Any updates here?
Can someone other than me exhibiting this problem try this patch? http://www.digitalprognosis.com/0001-Fix-the-longstanding-python-2.7-bug.patch Try it with existing openid users, new openid accounts, and then please try it on a fresh database with all of the various combinations. Lastly, don't forget to try regular-old password authentication. Please don't forget to let me know if it worked or not and what distro/django/python versions you're using.
Actually, that patch seems to fix it. Fixed in: 7787cea4e488b2593d229c6d0252799de7b7344c Please pull the latest git version and all should be well.