Policy Detail API returns 500 status codes in dse2

Bug #1597243 reported by Masahito Muroi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
congress
In Progress
Undecided
Aimee Ukasick

Bug Description

When user calls Policy detail API with un-defined policy name/id Congress returns 500 error. It should be 404 error.

example:
- Request
  GET /v1/policies/undefined-policy
- Return
  HTTP/1.1 500 Internal Server Error
  Content-Type: application/json
  Content-Length: 87
  X-Openstack-Request-Id: req-91ce7a71-fe8a-4bda-a043-a940987275cb
  Date: Wed, 29 Jun 2016 09:25:23 GMT

  {"error": {"message": "Internal server error", "error_data": null, "error_code": 500}}

Aimee Ukasick (aimeeu)
Changed in congress:
assignee: nobody → Aimee Ukasick (aimeeu)
Aimee Ukasick (aimeeu)
Changed in congress:
status: New → Confirmed
Aimee Ukasick (aimeeu)
Changed in congress:
status: Confirmed → In Progress
Revision history for this message
Eric K (ekcs) wrote :

Oops so sorry I mistakenly filed a duplicate bug for this.
https://bugs.launchpad.net/congress/+bug/1621268

Sorry I'm going to mark this one as duplicate because of all the activity that took place there, even though it really should've been the other way around.

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.