fix: reject an empty start-after and continuation-token in ListObjects (V1)
This commit is contained in:
1 parent
613c71290f
commit
276128b42b
4 files changed
+83
-16
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user