Re: 500 error when superuser attempts to access admin console
Thanks for confirming, Steve. We'll get an official patch out for the next release. Christian -- Christian Hammond - christ...@beanbaginc.com Review Board - https://www.reviewboard.org Beanbag, Inc. - https://www.beanbaginc.com -Original Message- From: Steve seide.al...@gmail.com Reply: Steve seide.al...@gmail.com Date: March 20, 2015 at 9:21:59 AM To: reviewboard@googlegroups.com reviewboard@googlegroups.com Cc: seide.al...@gmail.com seide.al...@gmail.com, christ...@beanbaginc.com christ...@beanbaginc.com Subject: Re: 500 error when superuser attempts to access admin console On Thursday, March 19, 2015 at 3:16:41 PM UTC-7, Christian Hammond wrote: Hi Steve, Just to check, if you go to the main Review Board dashboard (not the admin dashboard), and then come back, does it work? No, that didn't make a difference. There's very clearly a bug here, which I'll get fixed up. What you can do to work around this, if the above does not work, is to edit your user profile in the database editor, and where it says Extra Data, set the content to: {} When I edit the user settings as admin, I see these settings: Extra data: null Permissions: {} Changing null to {} as you suggested fixes the problem. Thanks! --Steve Christian -- Christian Hammond - chri...@beanbaginc.com Review Board - https://www.reviewboard.org Beanbag, Inc. - https://www.beanbaginc.com -Original Message- From: Steve Reply: revie...@googlegroups.com Date: March 19, 2015 at 10:58:21 AM To: revie...@googlegroups.com Subject: 500 error when superuser attempts to access admin console I've created a fresh RB 2.0.15 instance on 2 test machines (Fedora 20 and LUbuntu 14.10). On both machines, I created an 'admin' user when I created the site. As admin, I created a user account for myself, 'sallan', and checked the 'Staff status' and 'Superuser status' boxes. Then I logged out as admin and logged in as sallan. I can see my dashboard fine, but when I attempt to go to the admin console, I get a 500 error. The log file has this error message: 2015-03-19 17:42:34,670 - ERROR - - Exception thrown for user sallan at http://tamaki/admin/ 'NoneType' object has no attribute 'get' Traceback (most recent call last): File /usr/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/handlers/base.py, line 112, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File /usr/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/contrib/admin/views/decorators.py, line 17, in _checkl\ ogin return view_func(request, *args, **kwargs) File /usr/lib/python2.7/site-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' Here's what my account looks like in the db: is_superuser: 1 username: sallan first_name: Steve last_name: Allan email: hidden is_staff: 1 is_active: 1 date_joined: 2015-03-17 22:27:38 Other info: $ python -V Python 2.7.5 $ rb-site --version rb-site 2.0.15 $ mysql --version mysql Ver 14.14 Distrib 5.5.38, for Linux (x86_64) using readline 5.1 Has anyone else encountered this or have suggestions on how to troubleshoot the problem? Thanks --Steve -- Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/ Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/ Happy user? Let us know! https://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups reviewboard group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com . For more options, visit https://groups.google.com/d/optout. -- Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/ Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/ Happy user? Let us know! https://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups reviewboard group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: 500 error when superuser attempts to access admin console
Hi Steve, Just to check, if you go to the main Review Board dashboard (not the admin dashboard), and then come back, does it work? There's very clearly a bug here, which I'll get fixed up. What you can do to work around this, if the above does not work, is to edit your user profile in the database editor, and where it says Extra Data, set the content to: {} Christian -- Christian Hammond - christ...@beanbaginc.com Review Board - https://www.reviewboard.org Beanbag, Inc. - https://www.beanbaginc.com -Original Message- From: Steve seide.al...@gmail.com Reply: reviewboard@googlegroups.com reviewboard@googlegroups.com Date: March 19, 2015 at 10:58:21 AM To: reviewboard@googlegroups.com reviewboard@googlegroups.com Subject: 500 error when superuser attempts to access admin console I've created a fresh RB 2.0.15 instance on 2 test machines (Fedora 20 and LUbuntu 14.10). On both machines, I created an 'admin' user when I created the site. As admin, I created a user account for myself, 'sallan', and checked the 'Staff status' and 'Superuser status' boxes. Then I logged out as admin and logged in as sallan. I can see my dashboard fine, but when I attempt to go to the admin console, I get a 500 error. The log file has this error message: 2015-03-19 17:42:34,670 - ERROR - - Exception thrown for user sallan at http://tamaki/admin/ 'NoneType' object has no attribute 'get' Traceback (most recent call last): File /usr/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/handlers/base.py, line 112, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File /usr/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/contrib/admin/views/decorators.py, line 17, in _checkl\ ogin return view_func(request, *args, **kwargs) File /usr/lib/python2.7/site-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' Here's what my account looks like in the db: is_superuser: 1 username: sallan first_name: Steve last_name: Allan email: hidden is_staff: 1 is_active: 1 date_joined: 2015-03-17 22:27:38 Other info: $ python -V Python 2.7.5 $ rb-site --version rb-site 2.0.15 $ mysql --version mysql Ver 14.14 Distrib 5.5.38, for Linux (x86_64) using readline 5.1 Has anyone else encountered this or have suggestions on how to troubleshoot the problem? Thanks --Steve -- Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/ Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/ Happy user? Let us know! https://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups reviewboard group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/ Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/ Happy user? Let us know! https://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups reviewboard group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
500 error when superuser attempts to access admin console
I've created a fresh RB 2.0.15 instance on 2 test machines (Fedora 20 and LUbuntu 14.10). On both machines, I created an 'admin' user when I created the site. As admin, I created a user account for myself, 'sallan', and checked the 'Staff status' and 'Superuser status' boxes. Then I logged out as admin and logged in as sallan. I can see my dashboard fine, but when I attempt to go to the admin console, I get a 500 error. The log file has this error message: 2015-03-19 17:42:34,670 - ERROR - - Exception thrown for user sallan at http://tamaki/admin/ 'NoneType' object has no attribute 'get' Traceback (most recent call last): File /usr/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/handlers/base.py, line 112, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File /usr/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/contrib/admin/views/decorators.py, line 17, in _checkl\ ogin return view_func(request, *args, **kwargs) File /usr/lib/python2.7/site-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' Here's what my account looks like in the db: is_superuser: 1 username: sallan first_name: Steve last_name: Allan email: hidden is_staff: 1 is_active: 1 date_joined: 2015-03-17 22:27:38 Other info: $ python -V Python 2.7.5 $ rb-site --version rb-site 2.0.15 $ mysql --version mysql Ver 14.14 Distrib 5.5.38, for Linux (x86_64) using readline 5.1 Has anyone else encountered this or have suggestions on how to troubleshoot the problem? Thanks --Steve -- Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/ Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/ Happy user? Let us know! https://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups reviewboard group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.