fix: reject unknown response-* query parameters in GetObject and HeadObject

getobject and headobject silently ignored any response-* query parameter outside the six overridable headers. they now return 400 InvalidArgument naming the parameter and its value, like s3, and the rest tests skipped for this issue are enabled.

Fixes #2075
This commit is contained in:
dualfroz committed 2026-10-07 19:40:28 +02:00
1 parent 5a14104c85
commit 86ff18f8c1
13 files changed
+208 -6

No files matched your search

+4
View File
@@ -1305,6 +1305,10 @@ func GetObject_overrides_fail_public(s *S3Conf) error {
}, withAnonymousClient())
}
func GetObject_overrides_fail_invalid_header(s *S3Conf) error {
return testInvalidResponseOverride(s, "GetObject_overrides_fail_invalid_header", http.MethodGet)
}
func GetObject_invalid_part_number(s *S3Conf) error {
testName := "GetObject_invalid_part_number"
return actionHandler(s, testName, func(s3client *s3.Client, bucket string) error {