From 29f46aa61691a6af559a206f9d8811e17ead87a7 Mon Sep 17 00:00:00 2001 From: vovler <56048902+vovler@users.noreply.github.com> Date: Thu, 9 Nov 2023 18:40:28 +0000 Subject: [PATCH] Update s3.cc to add Content-MD5 header. Required for Xtrabackup to Backblaze upload incase Object Lock is activated --- storage/innobase/xtrabackup/src/xbcloud/s3.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/storage/innobase/xtrabackup/src/xbcloud/s3.cc b/storage/innobase/xtrabackup/src/xbcloud/s3.cc index e36f3555ff77..bb1dac867044 100644 --- a/storage/innobase/xtrabackup/src/xbcloud/s3.cc +++ b/storage/innobase/xtrabackup/src/xbcloud/s3.cc @@ -113,7 +113,10 @@ std::string S3_signerV4::build_hashed_canonical_request( std::string content_sha256 = hex_encode(request.payload().sha256()); request.add_header(AWS_CONTENT_SHA256_HEADER, content_sha256); - + + std::string content_md5 = base64_encode(request.payload().md5()); + request.add_header("Content-MD5", content_md5); + /* canonical URI */ canonical_request << request.path() << "\n";