yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #11399
[Bug 1291021] [NEW] Unhandled UnboundLocalError in instance views
Public bug reported:
If an error is raised in either the DetailView or ResizeView (in
openstack_dashboard.dashboards.project.instances.views) we assume that a
redirect will be raised. However, certain exception classes will not
result in a redirect when handled by the standard Horizon exception
handler.
The problem spots are here
(https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/instances/views.py#L270)
and here
(https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/instances/views.py#L312).
If the error handler doesn't raise a redirect, control will be returned
to the statement after the 'except' block and the 'instance' variable
may be unbound.
** 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/1291021
Title:
Unhandled UnboundLocalError in instance views
Status in OpenStack Dashboard (Horizon):
New
Bug description:
If an error is raised in either the DetailView or ResizeView (in
openstack_dashboard.dashboards.project.instances.views) we assume that
a redirect will be raised. However, certain exception classes will not
result in a redirect when handled by the standard Horizon exception
handler.
The problem spots are here
(https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/instances/views.py#L270)
and here
(https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/instances/views.py#L312).
If the error handler doesn't raise a redirect, control will be
returned to the statement after the 'except' block and the 'instance'
variable may be unbound.
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1291021/+subscriptions
Follow ups
References