[
https://issues.apache.org/jira/browse/HDDS-12870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17945846#comment-17945846
]
Peter Lee commented on HDDS-12870:
----------------------------------
I think you're right. Adding a @MinValue(1) is enough
[https://github.com/apache/ozone/blob/b91e8e732f07e220b1be6b64fb74a8d3f67dbf3c/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/BucketEndpoint.java#L111]
You can also add the maximum limit for it:
[https://stackoverflow.com/a/18513468]
> Fix listObjects corner cases
> ----------------------------
>
> Key: HDDS-12870
> URL: https://issues.apache.org/jira/browse/HDDS-12870
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Chung En Lee
> Assignee: Chung En Lee
> Priority: Minor
>
> Refer to Tanvi’s MinIO Mint compatibility report, listObjects should fail
> with InvalidArgument while listing objects with maxKey = -1. See:
> {code:java}
> {
> "name": "aws-sdk-php",
> "function": "listObjects ( array $params = [] )",
> "args": {
> "Bucket": "aws-sdk-php-655aef1656593",
> "Object": "obj1"
> },
> "duration": "6757",
> "status": "FAIL",
> "error": "Expected listObjects to fail with InvalidArgument"
> } {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]