]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: return error when trying to copy encrypted object without key 40671/head
authorIlsoo Byun <ilsoobyun@linecorp.com>
Fri, 11 Dec 2020 00:57:49 +0000 (09:57 +0900)
committerNathan Cutler <ncutler@suse.com>
Thu, 8 Apr 2021 12:45:51 +0000 (14:45 +0200)
Fixes: https://tracker.ceph.com/issues/48554
Signed-off-by: Ilsoo Byun <ilsoobyun@linecorp.com>
(cherry picked from commit dde1303c92b39daa2d760a110f48dc9655e7765f)

src/rgw/rgw_op.cc

index c2501b7842a450019454325f2574a99d84c4fe7d..6addf415ec890c6489e238a02f27a45a93c3c194 100644 (file)
@@ -3604,7 +3604,7 @@ int RGWPutObj::get_data(const off_t fst, const off_t lst, bufferlist& bl)
     filter = decrypt.get();
   }
   if (op_ret < 0) {
-    return ret;
+    return op_ret;
   }
 
   ret = read_op.range_to_ofs(obj_size, new_ofs, new_end);