← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1525472] [NEW] Taking into account the exception with status_code

 

Public bug reported:

When an exception occurs in ajax[1], we get status code from only two
kinds of exceptions: exception with property 'http_status' or 'code'.

To make it easier to distinguish between different error, we should take
into account the exception with 'status_code', such as NotAuthorized[2].

[1]: https://github.com/openstack/horizon/blob/master/openstack_dashboard/api/rest/utils.py#L136
[2]: https://github.com/openstack/horizon/blob/master/horizon/exceptions.py#L119

** Affects: horizon
     Importance: Undecided
     Assignee: javeme (javaloveme)
         Status: In Progress

** Description changed:

- 
- When an exception occurs in ajax[1], we get status code from only two kinds of
- exceptions: exception with property 'http_status' or 'code'.
+ When an exception occurs in ajax[1], we get status code from only two
+ kinds of exceptions: exception with property 'http_status' or 'code'.
  
  To make it easier to distinguish between different error, we should take
  into account the exception with 'status_code', such as NotAuthorized[2].
  
- 
  [1]: https://github.com/openstack/horizon/blob/master/openstack_dashboard/api/rest/utils.py#L136
  [2]: https://github.com/openstack/horizon/blob/master/horizon/exceptions.py#L119

** Changed in: horizon
     Assignee: (unassigned) => javeme (javaloveme)

-- 
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/1525472

Title:
  Taking into account the exception with status_code

Status in OpenStack Dashboard (Horizon):
  In Progress

Bug description:
  When an exception occurs in ajax[1], we get status code from only two
  kinds of exceptions: exception with property 'http_status' or 'code'.

  To make it easier to distinguish between different error, we should take
  into account the exception with 'status_code', such as NotAuthorized[2].

  [1]: https://github.com/openstack/horizon/blob/master/openstack_dashboard/api/rest/utils.py#L136
  [2]: https://github.com/openstack/horizon/blob/master/horizon/exceptions.py#L119

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1525472/+subscriptions


Follow ups