From 90bb43f7c9a9a97fb735d41581184d846ff240bc Mon Sep 17 00:00:00 2001 From: Jon Austin <62040422+jonaustin09@users.noreply.github.com> Date: Thu, 14 Dec 2023 12:43:02 -0500 Subject: [PATCH] S3 Proxy PutBucketAcl reference bug (#341) * feat: implemented the logic to run integration tests separately * fix: Fixes #336, fixed s3 proxy PutBucketAcl action's referance bug --- backend/s3proxy/s3.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/s3proxy/s3.go b/backend/s3proxy/s3.go index 7ab2c6fb..14fa7fcb 100644 --- a/backend/s3proxy/s3.go +++ b/backend/s3proxy/s3.go @@ -472,10 +472,11 @@ func (s S3be) PutBucketAcl(ctx context.Context, bucket string, data []byte) erro } for _, el := range acl.Grantees { + acc := el.Access input.AccessControlPolicy.Grants = append(input.AccessControlPolicy.Grants, types.Grant{ Permission: el.Permission, Grantee: &types.Grantee{ - ID: &el.Access, + ID: &acc, Type: types.TypeCanonicalUser, }, })