From 4181d1f26336e259c52fb75ba123b33816349789 Mon Sep 17 00:00:00 2001 From: chrislu Date: Wed, 12 Nov 2025 17:38:50 -0800 Subject: [PATCH] fix error message --- weed/s3api/s3api_bucket_policy_engine.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/s3api/s3api_bucket_policy_engine.go b/weed/s3api/s3api_bucket_policy_engine.go index a1c50f42f..9e77f407c 100644 --- a/weed/s3api/s3api_bucket_policy_engine.go +++ b/weed/s3api/s3api_bucket_policy_engine.go @@ -195,8 +195,8 @@ func convertActionToS3Format(action string) string { default: // Log warning for unmapped actions to help catch issues - glog.Warningf("convertActionToS3Format: unmapped action '%s', treating as wildcard", action) - // For safety, return the action with s3: prefix but log it + glog.Warningf("convertActionToS3Format: unmapped action '%s', prefixing with 's3:'", action) + // For unknown actions, prefix with s3: to maintain format consistency // This maintains backward compatibility while alerting developers return "s3:" + action }