← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1452298] Re: Fails to filter domains by id

 

Ready for the punt return? :)

Because ?id=default is not a query parameter documented or supported in
any collection API, the client is not actually making a valid API
request. And because 'id' is also a documented API convention, I'd
suggest that to provide the expected user experience, the client should
simply know to do the right thing and call a get(id=x) and return the
result wrapped in a list, as callers of .list(id=x) would expect.

** Tags added: user-experience

** Changed in: python-keystoneclient
       Status: Invalid => Triaged

** Changed in: keystone
       Status: New => Invalid

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

Title:
  Fails to filter domains by id

Status in OpenStack Identity (Keystone):
  Invalid
Status in Python client library for Keystone:
  Triaged

Bug description:
  V3 client fails to filter domains by id. Following code should list
  only 'default' domain, but list of all domains is returned instead:

  >>> import keystoneclient.v3.client as ksclient_v3
  >>> client = ksclient_v3.Client(endpoint='http://192.0.2.5:35357/v3', token='153c6ee5a6486e7db131ada9a464ab0f12f3f4cb')
  >>> default_domain = client.domains.list(id='default')[0]
  >>> default_domain
  <Domain description=Contains users and projects created by heat, enabled=True, id=29f4f3f567f943eb9769329352753b89, links={u'self': u'http://192.0.2.5:35357/v3/domains/29f4f3f567f943eb9769329352753b89'}, name=heat_stack>
  >>> client.domains.list(id='default')
  [<Domain description=Contains users and projects created by heat, enabled=True, id=29f4f3f567f943eb9769329352753b89, links={u'self': u'http://192.0.2.5:35357/v3/domains/29f4f3f567f943eb9769329352753b89'}, name=heat_stack>, <Domain description=Owns users and tenants (i.e. projects) available on Identity API v2., enabled=True, id=default, links={u'self': u'http://192.0.2.5:35357/v3/domains/default'}, name=Default>]

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