← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1301129] Re: return error when no matched filters

 

Unsupported query strings *should* be ignored -- can you point to an web
service that sets a different precedent?

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

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

Title:
  return error when no matched filters

Status in OpenStack Identity (Keystone):
  Opinion

Bug description:
  We should return an error response if there is no matched filters.

  Currently we use @controller.filterprotected(*filters) to define the
  filters we support. However the other filters we just ignore. So, it
  will return all if there is no matched filters. This will make users
  very confused. An example:

  curl -i -H "X-Auth-Token:admin"
  http://127.0.0.1:35357/v3/projects?xx=xx

  
  {"links": {"self": "http://192.168.70.108:5000/v3/projects";, "previous": null, "next": null}, "projects": [ {"description": null, "links": {"self": "http://192.168.70.108:5000/v3/projects/408361f47d28424986327d8be79518ff"}, "enabled": true, "id": "408361f47d28424986327d8be79518ff", "domain_id": "default", "name": "admin"}, {"description": null, "links": {"self": "http://192.168.70.108:5000/v3/projects/96349519b6544190924560072aa50a5a"}, "enabled": true, "id": "96349519b6544190924560072aa50a5a", "domain_id": "default", "name": "demo"}, {"description": null, "links": {"self": "http://192.168.70.108:5000/v3/projects/b46ae62d09394495b11ca48542a84cb1"}, "enabled": true, "id": "b46ae62d09394495b11ca48542a84cb1", "domain_id": "default", "name": "service"}]}

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


References