[ 
https://issues.apache.org/jira/browse/HDDS-15616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gargi Jaiswal updated HDDS-15616:
---------------------------------
    Status: Patch Available  (was: In Progress)

> ListBuckets API ignores MaxBuckets parameter and returns all buckets
> --------------------------------------------------------------------
>
>                 Key: HDDS-15616
>                 URL: https://issues.apache.org/jira/browse/HDDS-15616
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: s3gateway
>            Reporter: Gargi Jaiswal
>            Assignee: Gargi Jaiswal
>            Priority: Major
>              Labels: pull-request-available
>
> S3 test {color:#de350b}test_list_buckets_paginated{color} {color:#172b4d}is 
> failing today as ListBuckets pagination using *{{MaxBuckets}}* and 
> *{{ContinuationToken}}* on {{GET /}} (ListAllMyBuckets) is not supported. 
> {color}
> creates 2 buckets and calls {{{}list_buckets(MaxBuckets=1){}}}.
> Expected: 1 bucket per page + {{ContinuationToken}} when more exist.
> Ozone: Ignores {{MaxBuckets}} and returns both buckets → {{assert len == 1}} 
> fails with 2.
> Simple example:
>  
> {code:java}
>  Buckets: [bucket-A, bucket-B]
>  Client: list_buckets(MaxBuckets=1) 
>  AWS: { Buckets: [bucket-A], ContinuationToken: "..." }
>  Ozone: { Buckets: [bucket-A, bucket-B] } ← 2 items, no token {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]

Reply via email to