commit 02e97689e60b643d446720659c9688702aea197b
Author: Zhi Yan Liu <email address hidden>
Date: Mon Oct 7 11:44:33 2013 +0800
Adding 'download_image' policy enforcement to image cache middleware
Currently image cache middleware not care 'download_image' policy, the
enforcement caused user receive empty content but with HTTP 200 code
rather than 403 when client attempt to download image using v2 API. And
the real Forbidden exception be logged in glance-api log which image
application action raised. The end user is confused by this behavior.
Fixes bug: 1235378
Related-Id: Ibaa7ccf8613ee3cce4cb6a72e3206a2c94122222
Change-Id: I2822ee553d605b7d49576c886f42fa403cdbccf2
Signed-off-by: Zhi Yan Liu <email address hidden>
(cherry picked from commit a50bfbf490fd354d08abd25b67aaab83b2a17a85)
Reviewed: https:/ /review. openstack. org/50865 github. com/openstack/ glance/ commit/ 02e97689e60b643 d446720659c9688 702aea197b
Committed: http://
Submitter: Jenkins
Branch: milestone-proposed
commit 02e97689e60b643 d446720659c9688 702aea197b
Author: Zhi Yan Liu <email address hidden>
Date: Mon Oct 7 11:44:33 2013 +0800
Adding 'download_image' policy enforcement to image cache middleware
Currently image cache middleware not care 'download_image' policy, the
enforcement caused user receive empty content but with HTTP 200 code
rather than 403 when client attempt to download image using v2 API. And
the real Forbidden exception be logged in glance-api log which image
application action raised. The end user is confused by this behavior.
Fixes bug: 1235378
Related-Id: Ibaa7ccf8613ee3 cce4cb6a72e3206 a2c94122222 7d49576c886f42f a403cdbccf2 d08abd25b67aaab 83b2a17a85)
Change-Id: I2822ee553d605b
Signed-off-by: Zhi Yan Liu <email address hidden>
(cherry picked from commit a50bfbf490fd354