From 95e1f70eb5c37b0461af68cba32d781de3c52da3 Mon Sep 17 00:00:00 2001 From: qinyuren Date: Thu, 16 Jan 2025 17:52:17 +0800 Subject: [PATCH] The version-id in the get command does not work (#5110) --- cmd/get-url.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/get-url.go b/cmd/get-url.go index d77194c315..d6411ffb22 100644 --- a/cmd/get-url.go +++ b/cmd/get-url.go @@ -92,7 +92,7 @@ func guessGetURLType(ctx context.Context, o prepareCopyURLsOpts) (*copyURLsConte return cc, probe.NewError(fmt.Errorf("Please set a full path for s3 resource.")) } cc.sourceContent = s3clnt.objectInfo2ClientContent(bucket, minio.ObjectInfo{ - Key: path, + Key: path, VersionID: o.versionID, }) client, err = newClient(o.targetURL)