3819: 500 Internal Server Error (AttributeError, specifically) in /admin

logicka********@gmai***** (Google Code) (Is this you? Claim this profile.)
April 15, 2015
3817, 3835, 3881
This seems like a non-ideal fix for me, as it is not part of the new user signup flow and seems to be a bug, but hopefully it will get folks working in the interim**

What version are you running?
ReviewBoard-2.0.15
Django 1.6
Apache MPM-Prefork 2.4
mod_wsgi 3.3
Ubuntu 14.04 

What's the URL of the page containing the problem?
/admin/

What steps will reproduce the problem?
1. Create a new user and add them as "staff" and "superuser"
2. Login as newly created user
3. Attempt to access "admin" panel

What is the expected output? What do you see instead?
The Admin panel is expected. Instead, I receive "500 Internal Server Error" and the log output pasted in "additional information" below.

What operating system are you using? What browser?

OS X 10.10
Chrome 41.0.2272.010 

Please provide any additional information below:

2015-03-25 00:25:08,019 - ERROR -  - Exception thrown for user myuser at http://review.mycompanysite.com/admin/

'NoneType' object has no attribute 'get'
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/contrib/admin/views/decorators.py", line 17, in _checklogin
    return view_func(request, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.15-py2.7.egg/reviewboard/admin/views.py", line 39, in dashboard
    primary_widget_positions = profile_data.get('primary_widget_positions')
AttributeError: 'NoneType' object has no attribute 'get'
brennie
#2 brennie
The fix for this has landed on the release-2.0.x branch as commit 0e7315. It will be included in the next minor Review Board 2.0.x release (2.0.16) and all future releases.
  • +Fixed