From: Casey Bodley Date: Fri, 20 Apr 2018 20:12:18 +0000 (-0400) Subject: rgw: fix error handling for GET with ?torrent X-Git-Tag: v13.1.0~110^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4dff36efece63544a068dc86e4ea4624fb692057;p=ceph.git 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 --- diff --git a/src/common/options.cc b/src/common/options.cc index 8153d8896737..9b60b6f715d8 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -6054,7 +6054,9 @@ std::vector