From 49eda934d944e6fd8b8f6c59d0bccde045f24e6d Mon Sep 17 00:00:00 2001 From: cxymds Date: Tue, 24 Feb 2026 11:21:35 +0800 Subject: [PATCH] fix: policy-action-1903 (#1927) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 安正超 --- rustfs/src/storage/access.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rustfs/src/storage/access.rs b/rustfs/src/storage/access.rs index 09533586f..866cf3455 100644 --- a/rustfs/src/storage/access.rs +++ b/rustfs/src/storage/access.rs @@ -865,7 +865,7 @@ impl S3Access for FS { let req_info = req.extensions.get_mut::().expect("ReqInfo not found"); req_info.bucket = Some(req.input.bucket.clone()); - authorize_request(req, Action::S3Action(S3Action::GetObjectAclAction)).await + authorize_request(req, Action::S3Action(S3Action::GetBucketPolicyAction)).await } /// Checks whether the GetBucketPolicyStatus request has accesses to the resources. @@ -943,7 +943,7 @@ impl S3Access for FS { req_info.object = Some(req.input.key.clone()); req_info.version_id = req.input.version_id.clone(); - authorize_request(req, Action::S3Action(S3Action::GetBucketPolicyAction)).await + authorize_request(req, Action::S3Action(S3Action::GetObjectAclAction)).await } /// Checks whether the GetObjectAttributes request has accesses to the resources. @@ -1270,7 +1270,7 @@ impl S3Access for FS { let req_info = req.extensions.get_mut::().expect("ReqInfo not found"); req_info.bucket = Some(req.input.bucket.clone()); - authorize_request(req, Action::S3Action(S3Action::PutObjectAclAction)).await + authorize_request(req, Action::S3Action(S3Action::PutBucketPolicyAction)).await } /// Checks whether the PutBucketReplication request has accesses to the resources. @@ -1340,7 +1340,7 @@ impl S3Access for FS { req_info.object = Some(req.input.key.clone()); req_info.version_id = req.input.version_id.clone(); - authorize_request(req, Action::S3Action(S3Action::PutBucketPolicyAction)).await + authorize_request(req, Action::S3Action(S3Action::PutObjectAclAction)).await } /// Checks whether the PutObjectLegalHold request has accesses to the resources.