[ui] 'str' object has no attribute 'regex'

Bug #1709248 reported by Liyingjun
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Searchlight
Fix Released
Undecided
Liyingjun

Bug Description

Using latest devstack, when accessing to horizon dashboard, the following error raised,
AttributeError at /
'str' object has no attribute 'regex'
Request Method: GET
Request URL: http://192.168.84.91/dashboard/
Django Version: 1.11.3
Exception Type: AttributeError
Exception Value:
'str' object has no attribute 'regex'
Exception Location: /usr/local/lib/python2.7/dist-packages/django/urls/resolvers.py in _populate, line 291
Python Executable: /usr/bin/python
Python Version: 2.7.12
Python Path:
['/opt/stack/horizon',
 '/opt/stack/horizon',
 '/opt/stack/keystone',
 '/opt/stack/glance',
 '/opt/stack/cinder',
 '/opt/stack/neutron',
 '/opt/stack/nova',
 '/opt/stack/python-vitrageclient',
 '/opt/stack/vitrage',
 '/opt/stack/vitrage-dashboard',
 '/opt/stack/masakari',
 '/opt/stack/searchlight',
 '/opt/stack/python-searchlightclient',
 '/opt/stack/searchlight-ui',
 '/opt/stack/horizon',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/opt/stack/horizon/openstack_dashboard']

After applying the following patch, error gone:

--- a/searchlight_ui/dashboards/project/search/urls.py
+++ b/searchlight_ui/dashboards/project/search/urls.py
@@ -18,6 +18,5 @@ from searchlight_ui.dashboards.project.search import views

 urlpatterns = [
- 'searchlight_ui.dashboards.project.search.views',
     url(r'^$', views.IndexView.as_view(), name='index'),
 ]

Liyingjun (liyingjun)
Changed in searchlight:
assignee: nobody → Liyingjun (liyingjun)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to searchlight-ui (master)

Fix proposed to branch: master
Review: https://review.openstack.org/491680

Changed in searchlight:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to searchlight-ui (master)

Reviewed: https://review.openstack.org/491680
Committed: https://git.openstack.org/cgit/openstack/searchlight-ui/commit/?id=53bcef6c62550851d27ab5e79b538cdfe04cf163
Submitter: Jenkins
Branch: master

commit 53bcef6c62550851d27ab5e79b538cdfe04cf163
Author: liyingjun <email address hidden>
Date: Tue Aug 8 14:22:18 2017 +0800

    Fix 'str' object has no attribute 'regex'

    Change-Id: I62d2277854f76f66f8aa52f4a8867292725ab45a
    Closes-bug: #1709248

Changed in searchlight:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/searchlight-ui 3.0.0.0rc1

This issue was fixed in the openstack/searchlight-ui 3.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.