fix: reject an empty start-after and continuation-token in ListObjects (V1)

This commit is contained in:
dualfroz committed 2026-10-12 14:30:16 +02:00
1 parent 613c71290f
commit 276128b42b
4 files changed
+83 -16

No files matched your search

+5
View File
@@ -27,6 +27,7 @@ const (
InvalidArgMaxBuckets InvalidArgErrorCode = iota
InvalidArgNegativeMaxKeys
InvalidArgStartAfter
InvalidArgContinuationToken
InvalidArgObjectAttributes
InvalidArgPartNumber
InvalidArgCompleteMpPartNumber
@@ -95,6 +96,10 @@ var invalidArgErrResponses = map[InvalidArgErrorCode]InvalidArgumentError{
Description: "startAfter only supported in REST.GET.BUCKET with list-type=2",
ArgumentName: "start-after",
},
InvalidArgContinuationToken: {
Description: "continuation-token only supported in REST.GET.BUCKET with list-type=2",
ArgumentName: "continuation-token",
},
InvalidArgObjectAttributes: {
Description: "Invalid attribute name specified.",
ArgumentName: "x-amz-object-attributes",