Should a GET /shared-images/tenant for invalid tenant return 200 or a 404?

Asked by John Lenihan on 2013-03-04

If I do a GET to /shared-images/<tenant> where <tenant> is invalid tenant ID "BH!@#$" the API returns an empty set of shared images ({"shared_images": []}) and 200/OK.

This is reproducible on diablo and grizzly3 based systems.

Is the intention to return 200 because the set is empty, regardless of whether the tenant is invalid? Or should it return 404 since the tenant is invalid?

Question information

Language:
English Edit question
Status:
Solved
For:
Glance Edit question
Assignee:
No assignee Edit question
Solved by:
John Lenihan
Solved:
2013-03-05
Last query:
2013-03-05
Last reply:
2013-03-04
Iccha Sethi (iccha-sethi) said : #1

The intended behavior is 200. Glance does not validate the tenant it receives with keystone

John Lenihan (john-lenihan-k) said : #2

Thanks for this information. I will update my test accordingly.