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

Asked by John Lenihan

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

English Edit question
Glance Edit question
No assignee Edit question
Solved by:
John Lenihan
Last query:
Last reply:
Revision history for this message
Iccha Sethi (iccha-sethi) said :

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

Revision history for this message
John Lenihan (john-lenihan-k) said :

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