Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 2670 by [email protected]: /api/session not working with
reviewboard 1.6.9
http://code.google.com/p/reviewboard/issues/detail?id=2670
* NOTE: Do not post confidential information in this bug report. *
* If you need immediate support, please contact *
* [email protected] *
What version are you running?
1.6.9
What's the URL of the page containing the problem?
/api/session
What steps will reproduce the problem?
1. Try to login API
2.
3.
What is the expected output? What do you see instead?
login Successful
What operating system are you using? What browser?
Kubunu 12.04 32 bit. Firefox 13.0
Please provide any additional information below.
I have written a review board plugin for netbeans IDE
(https://code.google.com/p/nb-reviewboard/). This used to work with review
board 1.6.9.
However it is not working with 1.6.9. I have enabled the server log. Here
is the error i saw in the log,
Exception thrown for user AnonymousUser at http://192.168.0.3/api/session/
Incorrect padding
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/core/handlers/base.py",
line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/views/decorators/cache.py",
line 79, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/views/decorators/vary.py",
line 22, in inner_func
response = func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/Djblets-0.6.19-py2.7.egg/djblets/webapi/resources.py",
line 353, in __call__
check_login(request)
File "/usr/local/lib/python2.7/dist-packages/Djblets-0.6.19-py2.7.egg/djblets/webapi/auth.py",
line 44, in check_login
basic_access_login(request)
File "/usr/local/lib/python2.7/dist-packages/Djblets-0.6.19-py2.7.egg/djblets/webapi/auth.py",
line 50, in basic_access_login
username, password = encoded_auth.decode('base64').split(':', 1)
File "/usr/lib/python2.7/encodings/base64_codec.py", line 42, in
base64_decode
output = base64.decodestring(input)
File "/usr/lib/python2.7/base64.py", line 321, in decodestring
return binascii.a2b_base64(s)
Error: Incorrect padding
Internal Server Error: /api/session/
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/core/handlers/base.py",
line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/views/decorators/cache.py",
line 79, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/views/decorators/vary.py",
line 22, in inner_func
response = func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/Djblets-0.6.19-py2.7.egg/djblets/webapi/resources.py",
line 353, in __call__
check_login(request)
File "/usr/local/lib/python2.7/dist-packages/Djblets-0.6.19-py2.7.egg/djblets/webapi/auth.py",
line 44, in check_login
basic_access_login(request)
File "/usr/local/lib/python2.7/dist-packages/Djblets-0.6.19-py2.7.egg/djblets/webapi/auth.py",
line 50, in basic_access_login
username, password = encoded_auth.decode('base64').split(':', 1)
File "/usr/lib/python2.7/encodings/base64_codec.py", line 42, in
base64_decode
output = base64.decodestring(input)
File "/usr/lib/python2.7/base64.py", line 321, in decodestring
return binascii.a2b_base64(s)
Error: Incorrect padding
--
You received this message because you are subscribed to the Google Groups
"reviewboard-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/reviewboard-issues?hl=en.