]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix error handling for GET with ?torrent 21576/head
authorCasey Bodley <cbodley@redhat.com>
Fri, 20 Apr 2018 20:12:18 +0000 (16:12 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 20 Apr 2018 20:18:17 +0000 (16:18 -0400)
commit4dff36efece63544a068dc86e4ea4624fb692057
tree19b43c91b7a4fda673771f95a9e29afb9327c24b
parent94271de7ff6ed4f05c9415cf81e493677adb1e6d
rgw: fix error handling for GET with ?torrent

GET requests with ?torrent should never be treated as a normal GET
request. if rgw_torrent_flag wasn't true when the object was uploaded,
we'll detect the lack of torrent data when reading from omap

conversely, if rgw_torrent_flag was true during upload but disabled
afterwards, we can still return the torrent data

Fixes: http://tracker.ceph.com/issues/23506
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/common/options.cc
src/rgw/rgw_op.cc
src/rgw/rgw_rest.cc
src/rgw/rgw_torrent.cc