Keystone Trusts API sends non descriptive error message for requests with invalid trust id

Bug #1236511 reported by Adam Young
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Low
Priti Desai

Bug Description

When request with invalid/not-existing Trust ID is send, the 404 response "message" contains only that ID, not a whole 'sentence' as in other cases.

Discovered with openstack-keystone-2013.1.1-1.el6ost.

Issue request like:
> GET /v3/OS-TRUST/trusts/YOUR_INVALID_ID
or
> GET /v3/OS-TRUST/trusts/YOUR_INVALID_ID/roles # etc

Reply looks like:
> {u'error': {u'code': 404,
> u'message': u'YOUR_INVALID_ID',
> u'title': u'Not Found'}}

For other requests it mostly looks like:
> {u'error': {u'code': 404,
> u'message': u'Could not find role: b0f22e0104654f5699f801fe90761365',
> u'title': u'Not Found'}}

So the "Could not find <subject-type>: " part of message is missing here.

Adam Young (ayoung)
Changed in python-keystoneclient:
assignee: nobody → Adam Young (ayoung)
Revision history for this message
Dolph Mathews (dolph) wrote :

Unassigning due to inactivity.

Changed in python-keystoneclient:
assignee: Adam Young (ayoung) → nobody
affects: python-keystoneclient → keystone
Changed in keystone:
assignee: nobody → Priti Desai (priti-desai)
Revision history for this message
Priti Desai (priti-desai) wrote :

Fix submitted to branch: master
Review: https://review.openstack.org/86187

Changed in keystone:
status: New → In Progress
Changed in keystone:
status: In Progress → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
status: Fix Released → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
milestone: none → juno-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: juno-1 → 2014.2
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.