Download forbidden when get_image_location is set.
When using v2 an attempt to download an image would return a 403 if the
get_image_location policy was set.
Note: We had been returning both 404 and 204 when no data was
available. There was no way to detect the 404 case without trying to
access the image locations so I've standardized on 204.
Reviewed: https:/ /review. openstack. org/229984 /git.openstack. org/cgit/ openstack/ glance/ commit/ ?id=b47f625443c 3b46483506926f3 1fee42478705d4
Committed: https:/
Submitter: Jenkins
Branch: master
commit b47f625443c3b46 483506926f31fee 42478705d4
Author: Stuart McLaren <email address hidden>
Date: Wed Sep 30 16:54:12 2015 +0000
Download forbidden when get_image_location is set.
When using v2 an attempt to download an image would return a 403 if the image_location policy was set.
get_
Note: We had been returning both 404 and 204 when no data was
available. There was no way to detect the 404 case without trying to
access the image locations so I've standardized on 204.
Change-Id: I658b08a35d3a8c b8a7096baf716cc b3d6e7d9abf
Closes-bug: 1501672