From 64a824f41e6ba1fb685d43814abd2994da11a6ec Mon Sep 17 00:00:00 2001 From: Shubhendu Ram Tripathi Date: Tue, 5 Mar 2024 13:01:13 +0530 Subject: [PATCH 1/2] Added `x-minio-replication-object-size` to allowed headers Need to send actual object size while replicating a multipart object as parts would be replicated as is with their encrypted content and content length. Later at target while creating xl.meta for the completed object, we need the actual object size be set as `X-Minio-Internal-actual-size` Signed-off-by: Shubhendu Ram Tripathi --- utils.go | 1 + 1 file changed, 1 insertion(+) diff --git a/utils.go b/utils.go index 46123ea770..2109c17611 100644 --- a/utils.go +++ b/utils.go @@ -517,6 +517,7 @@ var supportedReplicationEncryptionHeaders = map[string]bool{ "x-minio-replication-server-side-encryption-seal-algorithm": true, "x-minio-replication-server-side-encryption-iv": true, "x-minio-replication-encrypted-multipart": true, + "x-minio-replication-object-size": true, // Add more supported headers here. // Must be lower case. } From 0135870885e1bcfc9c3fac91eb6ce91b005e02b1 Mon Sep 17 00:00:00 2001 From: Shubhendu Ram Tripathi Date: Tue, 5 Mar 2024 15:27:57 +0530 Subject: [PATCH 2/2] review comments Signed-off-by: Shubhendu Ram Tripathi --- utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.go b/utils.go index 2109c17611..d68f148444 100644 --- a/utils.go +++ b/utils.go @@ -517,7 +517,7 @@ var supportedReplicationEncryptionHeaders = map[string]bool{ "x-minio-replication-server-side-encryption-seal-algorithm": true, "x-minio-replication-server-side-encryption-iv": true, "x-minio-replication-encrypted-multipart": true, - "x-minio-replication-object-size": true, + "x-minio-replication-actual-object-size": true, // Add more supported headers here. // Must be lower case. }