Skip to content

Commit

Permalink
S3 Proxy PutBucketAcl reference bug (#341)
Browse files Browse the repository at this point in the history
* feat: implemented the logic to run integration tests separately

* fix: Fixes #336, fixed s3 proxy PutBucketAcl action's referance bug
  • Loading branch information
jonaustin09 authored Dec 14, 2023
1 parent 206231f commit 90bb43f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/s3proxy/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
})
Expand Down

0 comments on commit 90bb43f

Please sign in to comment.