[
https://issues.apache.org/jira/browse/HDDS-12870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17945832#comment-17945832
]
Shih-Chieh Weng commented on HDDS-12870:
----------------------------------------
Hi [~wfps1210] ,
I think for this fix, we just need to add a validation in get function of
BucketEndpoint class to throw InvalidArgument error when maxKeys <= 0, and make
a unit test for this scenario?
> 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]