Public bug reported: Using brand new cloned horizon with tox -e runserver, I will always get the following error the first time I try to go directly to urls like:
http://127.0.0.1:8000/identity/ Once I change it to anything else, it works. Environment: Request Method: GET Request URL: http://127.0.0.1:8000/identity/ Django Version: 1.8.17 Python Version: 2.7.10 Installed Applications: ['openstack_dashboard.dashboards.project', 'searchlight_ui', 'openstack_dashboard.dashboards.admin', 'openstack_dashboard.dashboards.identity', 'openstack_dashboard.dashboards.settings', 'openstack_dashboard', 'django.contrib.contenttypes', 'django.contrib.auth', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.humanize', 'django_pyscss', 'openstack_dashboard.django_pyscss_fix', 'compressor', 'horizon', 'openstack_auth'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'horizon.middleware.OperationLogMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'horizon.middleware.HorizonMiddleware', 'horizon.themes.ThemeMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'openstack_dashboard.contrib.developer.profiler.middleware.ProfilerClientMiddleware', 'openstack_dashboard.contrib.developer.profiler.middleware.ProfilerMiddleware') Traceback: File "/Users/ttripp/dev/openstack/horizon/.tox/runserver/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 132. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/Users/ttripp/dev/openstack/horizon/horizon/decorators.py" in dec 36. return view_func(request, *args, **kwargs) File "/Users/ttripp/dev/openstack/horizon/horizon/decorators.py" in dec 52. return view_func(request, *args, **kwargs) File "/Users/ttripp/dev/openstack/horizon/horizon/decorators.py" in dec 36. return view_func(request, *args, **kwargs) File "/Users/ttripp/dev/openstack/horizon/.tox/runserver/lib/python2.7/site-packages/django/views/generic/base.py" in view 71. return self.dispatch(request, *args, **kwargs) File "/Users/ttripp/dev/openstack/horizon/.tox/runserver/lib/python2.7/site-packages/django/views/generic/base.py" in dispatch 89. return handler(request, *args, **kwargs) File "/Users/ttripp/dev/openstack/horizon/horizon/tables/views.py" in get 219. handled = self.construct_tables() File "/Users/ttripp/dev/openstack/horizon/horizon/tables/views.py" in construct_tables 210. handled = self.handle_table(table) File "/Users/ttripp/dev/openstack/horizon/horizon/tables/views.py" in handle_table 123. data = self._get_data_dict() File "/Users/ttripp/dev/openstack/horizon/horizon/tables/views.py" in _get_data_dict 247. self._data = {self.table_class._meta.name: self.get_data()} File "/Users/ttripp/dev/openstack/horizon/openstack_dashboard/dashboards/identity/projects/views.py" in get_data 84. self.request): File "/Users/ttripp/dev/openstack/horizon/openstack_dashboard/policy.py" in check 24. return policy_check(actions, request, target) File "/Users/ttripp/dev/openstack/horizon/.tox/runserver/lib/python2.7/site-packages/openstack_auth/policy.py" in check 147. enforcer = _get_enforcer() File "/Users/ttripp/dev/openstack/horizon/.tox/runserver/lib/python2.7/site-packages/openstack_auth/policy.py" in _get_enforcer 57. if os.path.isfile(enforcer.policy_path): File "/Users/ttripp/dev/openstack/horizon/.tox/runserver/lib/python2.7/genericpath.py" in isfile 37. st = os.stat(path) Exception Type: TypeError at /identity/ Exception Value: coercing to Unicode: need string or buffer, NoneType found ** Affects: horizon Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Dashboard (Horizon). https://bugs.launchpad.net/bugs/1657843 Title: TypeError: coercing to Unicode: need string or buffer, NoneType found Status in OpenStack Dashboard (Horizon): New Bug description: Using brand new cloned horizon with tox -e runserver, I will always get the following error the first time I try to go directly to urls like: http://127.0.0.1:8000/identity/ Once I change it to anything else, it works. Environment: Request Method: GET Request URL: http://127.0.0.1:8000/identity/ Django Version: 1.8.17 Python Version: 2.7.10 Installed Applications: ['openstack_dashboard.dashboards.project', 'searchlight_ui', 'openstack_dashboard.dashboards.admin', 'openstack_dashboard.dashboards.identity', 'openstack_dashboard.dashboards.settings', 'openstack_dashboard', 'django.contrib.contenttypes', 'django.contrib.auth', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.humanize', 'django_pyscss', 'openstack_dashboard.django_pyscss_fix', 'compressor', 'horizon', 'openstack_auth'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'horizon.middleware.OperationLogMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'horizon.middleware.HorizonMiddleware', 'horizon.themes.ThemeMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'openstack_dashboard.contrib.developer.profiler.middleware.ProfilerClientMiddleware', 'openstack_dashboard.contrib.developer.profiler.middleware.ProfilerMiddleware') Traceback: File "/Users/ttripp/dev/openstack/horizon/.tox/runserver/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 132. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/Users/ttripp/dev/openstack/horizon/horizon/decorators.py" in dec 36. return view_func(request, *args, **kwargs) File "/Users/ttripp/dev/openstack/horizon/horizon/decorators.py" in dec 52. return view_func(request, *args, **kwargs) File "/Users/ttripp/dev/openstack/horizon/horizon/decorators.py" in dec 36. return view_func(request, *args, **kwargs) File "/Users/ttripp/dev/openstack/horizon/.tox/runserver/lib/python2.7/site-packages/django/views/generic/base.py" in view 71. return self.dispatch(request, *args, **kwargs) File "/Users/ttripp/dev/openstack/horizon/.tox/runserver/lib/python2.7/site-packages/django/views/generic/base.py" in dispatch 89. return handler(request, *args, **kwargs) File "/Users/ttripp/dev/openstack/horizon/horizon/tables/views.py" in get 219. handled = self.construct_tables() File "/Users/ttripp/dev/openstack/horizon/horizon/tables/views.py" in construct_tables 210. handled = self.handle_table(table) File "/Users/ttripp/dev/openstack/horizon/horizon/tables/views.py" in handle_table 123. data = self._get_data_dict() File "/Users/ttripp/dev/openstack/horizon/horizon/tables/views.py" in _get_data_dict 247. self._data = {self.table_class._meta.name: self.get_data()} File "/Users/ttripp/dev/openstack/horizon/openstack_dashboard/dashboards/identity/projects/views.py" in get_data 84. self.request): File "/Users/ttripp/dev/openstack/horizon/openstack_dashboard/policy.py" in check 24. return policy_check(actions, request, target) File "/Users/ttripp/dev/openstack/horizon/.tox/runserver/lib/python2.7/site-packages/openstack_auth/policy.py" in check 147. enforcer = _get_enforcer() File "/Users/ttripp/dev/openstack/horizon/.tox/runserver/lib/python2.7/site-packages/openstack_auth/policy.py" in _get_enforcer 57. if os.path.isfile(enforcer.policy_path): File "/Users/ttripp/dev/openstack/horizon/.tox/runserver/lib/python2.7/genericpath.py" in isfile 37. st = os.stat(path) Exception Type: TypeError at /identity/ Exception Value: coercing to Unicode: need string or buffer, NoneType found To manage notifications about this bug go to: https://bugs.launchpad.net/horizon/+bug/1657843/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

