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

asked 2013-03-04 12:44:19 -0600

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?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2013-03-05 08:50:12 -0600

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

edit flag offensive delete link more
0

answered 2013-03-04 14:38:30 -0600

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

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-03-04 12:44:19 -0600

Seen: 33 times

Last updated: Mar 05 '13