From 820d94447c342e70ff6da8717b001027ec23df56 Mon Sep 17 00:00:00 2001 From: Poorna Date: Fri, 27 Jan 2023 10:24:51 -0800 Subject: [PATCH] replication: fix target bucket passed on GET proxy (#16495) --- cmd/bucket-replication.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/bucket-replication.go b/cmd/bucket-replication.go index 82e107c95..139236b52 100644 --- a/cmd/bucket-replication.go +++ b/cmd/bucket-replication.go @@ -1918,7 +1918,7 @@ func proxyGetToReplicationTarget(ctx context.Context, bucket, object string, rs return nil, proxy, err } c := minio.Core{Client: tgt.Client} - obj, _, h, err := c.GetObject(ctx, bucket, object, gopts) + obj, _, h, err := c.GetObject(ctx, tgt.Bucket, object, gopts) if err != nil { return nil, proxy, err }