[Python-modules-team] Bug#796051: django-oauth-toolkit: FTBFS: multiple test failures: AttributeError: encoding
Chris West (Faux)
solo-debianbugs at goeswhere.com
Tue Aug 18 21:12:03 UTC 2015
Source: django-oauth-toolkit
Version: 0.8.1-1
Severity: serious
Justification: fails to build from source
Tags: sid stretch
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-CC: reproducible-builds at lists.alioth.debian.org
Dear Maintainer,
The package fails to build:
I: pybuild base:170: python2.7 runtests.py
............E.EE.EEEEEEEEEEEEE..................F.EEEEE............................................EEE........EE.EE.EEEE..E.E..E.....
======================================================================
ERROR: test_resource_access_allowed (oauth2_provider.tests.test_authorization_code.TestAuthorizationCodeProtectedResource)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_authorization_code.py", line 930, in test_resource_access_allowed
response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers)
File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post
secure=secure, **extra)
File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post
secure=secure, **extra)
File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic
return self.request(**r)
File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request
six.reraise(*exc_info)
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper
return bound_func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view
return view_func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func
return func.__get__(self, type(self))(*args2, **kwargs2)
File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch
return super(CsrfExemptMixin, self).dispatch(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch
return handler(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper
return bound_func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
return view(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func
return func.__get__(self, type(self))(*args2, **kwargs2)
File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post
url, headers, body, status = self.create_token_response(request)
File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response
return core.create_token_response(request)
File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response
headers)
File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper
return f(endpoint, uri, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response
request, self.default_token_type)
File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 234, in create_token_response
self.validate_token_request(request)
File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 364, in validate_token_request
if not self.request_validator.authenticate_client(request):
File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client
authenticated = self._authenticate_basic_auth(request)
File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth
encoding = request.encoding or 'utf-8'
File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__
raise AttributeError(name)
AttributeError: encoding
======================================================================
ERROR: test_basic_auth (oauth2_provider.tests.test_authorization_code.TestAuthorizationCodeTokenView)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_authorization_code.py", line 479, in test_basic_auth
response = self.client.post(reverse('oauth2_provider:token'), data=token_request_data, **auth_headers)
File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post
secure=secure, **extra)
File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post
secure=secure, **extra)
File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic
return self.request(**r)
File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request
six.reraise(*exc_info)
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper
return bound_func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view
return view_func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func
return func.__get__(self, type(self))(*args2, **kwargs2)
File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch
return super(CsrfExemptMixin, self).dispatch(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch
return handler(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper
return bound_func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
return view(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func
return func.__get__(self, type(self))(*args2, **kwargs2)
File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 170, in post
url, headers, body, status = self.create_token_response(request)
File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 124, in create_token_response
return core.create_token_response(request)
File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 106, in create_token_response
headers)
File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper
return f(endpoint, uri, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response
request, self.default_token_type)
File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 234, in create_token_response
self.validate_token_request(request)
File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py", line 364, in validate_token_request
if not self.request_validator.authenticate_client(request):
File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 166, in authenticate_client
authenticated = self._authenticate_basic_auth(request)
File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_validators.py", line 58, in _authenticate_basic_auth
encoding = request.encoding or 'utf-8'
File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__
raise AttributeError(name)
AttributeError: encoding
...
======================================================================
ERROR: test_revoke_refresh_token (oauth2_provider.tests.test_token_revocation.TestRevocationView)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_token_revocation.py", line 118, in test_revoke_refresh_token
response = self.client.post(url)
File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 482, in post
secure=secure, **extra)
File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 296, in post
secure=secure, **extra)
File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 358, in generic
return self.request(**r)
File "/usr/lib/python2.7/dist-packages/django/test/client.py", line 440, in request
six.reraise(*exc_info)
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 29, in _wrapper
return bound_func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py", line 57, in wrapped_view
return view_func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 25, in bound_func
return func.__get__(self, type(self))(*args2, **kwargs2)
File "/usr/lib/python2.7/dist-packages/braces/views/_forms.py", line 22, in dispatch
return super(CsrfExemptMixin, self).dispatch(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch
return handler(request, *args, **kwargs)
File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/base.py", line 186, in post
url, headers, body, status = self.create_revocation_response(request)
File "/django-oauth-toolkit-0.8.1/oauth2_provider/views/mixins.py", line 134, in create_revocation_response
return core.create_revocation_response(request)
File "/django-oauth-toolkit-0.8.1/oauth2_provider/oauth2_backends.py", line 121, in create_revocation_response
uri, http_method, body, headers)
File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper
return f(endpoint, uri, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/revocation.py", line 65, in create_revocation_response
self.validate_revocation_request(request)
File "/usr/lib/python2.7/dist-packages/oauthlib/oauth2/rfc6749/endpoints/revocation.py", line 127, in validate_revocation_request
if (request.token_type_hint and
File "/usr/lib/python2.7/dist-packages/oauthlib/common.py", line 409, in __getattr__
raise AttributeError(name)
AttributeError: token_type_hint
======================================================================
FAIL: test_pre_auth_wrong_response_type (oauth2_provider.tests.test_authorization_code.TestAuthorizationCodeView)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/django-oauth-toolkit-0.8.1/oauth2_provider/tests/test_authorization_code.py", line 266, in test_pre_auth_wrong_response_type
self.assertIn("error=unauthorized_client", response['Location'])
AssertionError: u'error=unauthorized_client' not found in 'http://localhost?error=unsupported_response_type'
----------------------------------------------------------------------
Ran 133 tests in 13.416s
FAILED (failures=1, errors=35)
Full build log:
https://reproducible.debian.net/rb-pkg/unstable/amd64/django-oauth-toolkit.html
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.19.0-23-generic (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
More information about the Python-modules-team
mailing list