]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: always decompress in CopyObject when source is compressed 68011/head
authorMatthew N. Heler <matthew.heler@hotmail.com>
Thu, 26 Mar 2026 01:32:06 +0000 (20:32 -0500)
committerMatthew N. Heler <matthew.heler@hotmail.com>
Thu, 26 Mar 2026 02:11:13 +0000 (21:11 -0500)
commit9bccd831d8be678dcf09c78cab52e88ea8f44e5e
tree86baabde3325d40c569beabfa01285facd0d1a28
parenta73a06f7b723c2f813540e882efa83b298a9db4d
rgw: always decompress in CopyObject when source is compressed

CopyObject skipped decompression when the source was encrypted,
passing compressed ciphertext to the write side. The compressor
then re-compressed already-compressed data, corrupting the object.

The guard was overly broad. It should have checked whether decrypt
is available rather than skipping decompress for all encrypted
sources.

Signed-off-by: Matthew N. Heler <matthew.heler@hotmail.com>
src/rgw/rgw_op.cc