From 03e3493288c8c32366fea01ad2da09968c3e6832 Mon Sep 17 00:00:00 2001 From: jiuker <2818723467@qq.com> Date: Thu, 30 May 2024 02:50:46 +0800 Subject: [PATCH] fix: correct parse the tagging error for PostPolicyBucketHandler (#19825) --- cmd/bucket-handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/bucket-handlers.go b/cmd/bucket-handlers.go index bb7200212..60fad18ae 100644 --- a/cmd/bucket-handlers.go +++ b/cmd/bucket-handlers.go @@ -1420,7 +1420,7 @@ func (api objectAPIHandlers) PostPolicyBucketHandler(w http.ResponseWriter, r *h if formValues.Get(postPolicyBucketTagging) != "" { tags, err := tags.ParseObjectXML(strings.NewReader(formValues.Get(postPolicyBucketTagging))) if err != nil { - writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL) + writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrMalformedPOSTRequest), r.URL) return } tagsStr := tags.String()