3881: Error 500, when accessing Admin Dashboard

bartos*******@gmai***** (Google Code) (Is this you? Claim this profile.)
June 9, 2015
3819
What version are you running?
2.0.14, 2.5beta1

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

What steps will reproduce the problem?
1. Login to Reviewboard as user with set 'Staff status', and is not created during installation.
2. Click link to admin dashboeard
3. Got 'Something broke! (Error 500)'.

What is the expected output? What do you see instead?
Admin dashboard loaded.

What operating system are you using? What browser?
Server OS: Linux pingwintc 3.16.0-0.bpo.4-amd64 #1 SMP Debian 3.16.7-ckt2-1~bpo70+1 (2014-12-08) x86_64 GNU/Linux
Client OS: Win7, x64
Browser: Chrome/Opera/Firefox

Please provide any additional information below.

Apache error.log:
[Tue Jun 09 09:42:19 2015] [error] ERROR:root:Exception thrown for user #### at http://rbsite/admin/
[Tue Jun 09 09:42:19 2015] [error]
[Tue Jun 09 09:42:19 2015] [error] 'NoneType' object has no attribute 'get'
[Tue Jun 09 09:42:19 2015] [error] Traceback (most recent call last):
[Tue Jun 09 09:42:19 2015] [error]   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
[Tue Jun 09 09:42:19 2015] [error]     response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Tue Jun 09 09:42:19 2015] [error]   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
[Tue Jun 09 09:42:19 2015] [error]     return view_func(request, *args, **kwargs)
[Tue Jun 09 09:42:19 2015] [error]   File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5beta1-py2.7.egg/reviewboard/admin/views.py", line 42, in dashboard
[Tue Jun 09 09:42:19 2015] [error]     primary_widget_selections = profile_data.get('primary_widget_selections')
[Tue Jun 09 09:42:19 2015] [error] AttributeError: 'NoneType' object has no attribute 'get'

After:
update accounts_profile set extra_data = '{}' WHERE user_id = {user_id};

Everything works fine.
brennie
#1 brennie
This has been fixed on the release-2.0.x branch, but we haven't done a release since it was fixed.