------------------------------------------------------------------------------
To reply, visit https://hellosplat.com/s/beanbag/tickets/4521/
------------------------------------------------------------------------------
New ticket #4521 by aboks
For Beanbag, Inc. > Review Board
Status: New
Tags: Priority:Medium, Type:Defect
------------------------------------------------------------------------------
Internal server error on /api/repositories after upgrade to 2.5.8
==============================================================================
# What version are you running?
2.5.8
# What's the URL of the page containing the problem?
/api/repositories/
# What steps will reproduce the problem?
1. Making an API GET request to /api/repositories, with an 'Authorization:
token [redacted]' header.
# What is the expected output? What do you see instead?
Expected to get a list of repositories (worked fine in 2.5.7). Got a mail about
an internal server error in 2.5.8.
# What operating system are you using? What browser?
ReviewBoard runs on Debian Wheezy. Browser is not relevant (custom API client).
# Please provide any additional information below.
Stacktrace received in e-mail:
Traceback (most recent call last):
File
"/usr/local/lib/python2.7/dist-packages/Django-1.6.11-py2.7.egg/django/core/handlers/base.py",
line 112, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File
"/usr/local/lib/python2.7/dist-packages/Django-1.6.11-py2.7.egg/django/views/decorators/cache.py",
line 52, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/Django-1.6.11-py2.7.egg/django/views/decorators/vary.py",
line 19, in inner_func
response = func(*args, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/Djblets-0.9.5-py2.7.egg/djblets/webapi/resources/base.py",
line 135, in __call__
auth_result = check_login(request)
File
"/usr/local/lib/python2.7/dist-packages/Djblets-0.9.5-py2.7.egg/djblets/webapi/auth/backends/__init__.py",
line 87, in check_login
result = auth_backend_cls().authenticate(request)
File
"/usr/local/lib/python2.7/dist-packages/Djblets-0.9.5-py2.7.egg/djblets/webapi/auth/backends/base.py",
line 78, in authenticate
credentials = self.get_credentials(request)
File
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5.8-py2.7.egg/reviewboard/webapi/auth_backends.py",
line 46, in get_credentials
.filter(username=credentials['username'])
TypeError: 'NoneType' object has no attribute '__getitem__'
------------------------------------------------------------------------------
--
You received this message because you are subscribed to the Google Groups
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.