From 4dff36efece63544a068dc86e4ea4624fb692057 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Fri, 20 Apr 2018 16:12:18 -0400 Subject: [PATCH] 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 --- src/common/options.cc | 4 +++- src/rgw/rgw_op.cc | 4 +++- src/rgw/rgw_rest.cc | 15 ++------------- src/rgw/rgw_torrent.cc | 28 +++++++++++----------------- 4 files changed, 19 insertions(+), 32 deletions(-) diff --git a/src/common/options.cc b/src/common/options.cc index 8153d88967371..9b60b6f715d80 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -6054,7 +6054,9 @@ std::vector