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.
Change-Id: I658b08a35d3a8cb8a7096baf716ccb3d6e7d9abf
Closes-bug: 1501672
(cherry picked from commit b47f625443c3b46483506926f31fee42478705d4)
Reviewed: https:/ /review. openstack. org/230008 /git.openstack. org/cgit/ openstack/ glance/ commit/ ?id=ca8d909a61b a335805d8d17070 230ce9478a000d
Committed: https:/
Submitter: Jenkins
Branch: stable/liberty
commit ca8d909a61ba335 805d8d17070230c e9478a000d
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 483506926f31fee 42478705d4)
Closes-bug: 1501672
(cherry picked from commit b47f625443c3b46