← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1236511] Re: Keystone Trusts API sends non descriptive error message for requests with invalid trust id

 

** Changed in: keystone
       Status: Fix Committed => Fix Released

** Changed in: keystone
    Milestone: None => juno-1

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1236511

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

Status in OpenStack Identity (Keystone):
  Fix Released

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.

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