]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
radosgw: fix zero sized chunked uploads with s3
authorMarcus Watts <mwatts@redhat.com>
Tue, 15 Aug 2017 03:56:21 +0000 (23:56 -0400)
committerAbhishek Lekshmanan <abhishek@suse.com>
Mon, 21 Aug 2017 10:12:58 +0000 (12:12 +0200)
commit33673bca96982653674a515933658cb44f8addea
tree88038ffb9797b02d1f528a71faa50f1f1183b4c3
parent44b1ce844afdd7c70b7f57a08fcbe09b01c7c482
radosgw: fix zero sized chunked uploads with s3

s3 allows for zero sized objects, which can be
created using chunked uploads.  It is important to
call "recv_body (and ChunkMeta::create_next()) even
on zero sized objects, so that the proper chunk signature
can be presented at signature verification time.

Fixes: http://tracker.ceph.com/issues/21000
Signed-off-by: Marcus Watts <mwatts@redhat.com>
(cherry picked from commit 4d3d72fd1c5e0e3913ee9f9b7f8ce2bfe6d4b6fa)
src/rgw/rgw_rest.cc