[openstack-dev] [glance][api] Response when a illegal body is sent

Bunting, Niall niall.bunting at hp.com
Thu Jul 23 15:53:01 UTC 2015


Currently when a body is passed to an API operation that explicitly does not allow bodies Glance throws a 500.

Such as in this bug report: https://bugs.launchpad.net/glance/+bug/1475647 This is an example of a GET however this also applies to other requests.

What should Glance do rather than throwing a 500, should it return a 400 as the user provided an illegal body or should Glance ignore the body and continue?


More information about the OpenStack-dev mailing list