From c4c199defe9ec69202ce01f3b479745ad56c5564 Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Fri, 9 Feb 2024 11:18:14 +0300 Subject: [PATCH] [#306] Use s3 as chain id prefix to be consistent Signed-off-by: Denis Kirillov --- api/handler/acl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/handler/acl.go b/api/handler/acl.go index 5e526245..8a0bded8 100644 --- a/api/handler/acl.go +++ b/api/handler/acl.go @@ -596,7 +596,7 @@ func (h *handler) PutBucketPolicyHandler(w http.ResponseWriter, r *http.Request) } func getBucketChainID(bktInfo *data.BucketInfo) chain.ID { - return chain.ID("bkt" + string(bktInfo.CID[:])) + return chain.ID(string(chain.S3) + ":bkt" + string(bktInfo.CID[:])) } func parseACLHeaders(header http.Header, key *keys.PublicKey) (*AccessControlPolicy, error) {