S3 ListBuckets ignores max-buckets and continuation-token
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 56/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- postgresql, typescript
Direzione di ricerca
Start by locating the ListBuckets route and S3ProtocolHandler.listBuckets, the two entry points named in the issue. Trace how the route validates and forwards query parameters, then how bucket results are ordered and paged. Reproduce with the TypeScript example; done means MaxBuckets limits results, later pages return a ContinuationToken, and invalid values receive HTTP 400.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Bug
S3 ListBuckets ignores the max-buckets and continuation-token query parameters. A request with max-buckets=1 returns every bucket in the project, and the response never includes a ContinuationToken, so paginated clients always get a single page. Out-of-range values such as max-buckets=0 and malformed continuation tokens are accepted with HTTP 200.
AWS documents max-buckets as 1 to 10,000, includes ContinuationToken in the response when more buckets can be listed, and applies a default page size of 10,000 when prefix or continuation-token is sent without max-buckets: https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBuckets.html
Follow-up to #1618, which covered prefix.
Reproduction
Against the local integration stack on current master (dd17e18a):
for (const Bucket of ['repro-page-a', 'repro-page-b', 'repro-page-c']) {
await client.send(new CreateBucketCommand({ Bucket }))
}
await client.send(new ListBucketsCommand({ MaxBuckets: 1 }))
// returns every bucket in the project (223 locally); ContinuationToken is undefined
for await (const page of paginateListBuckets({ client, pageSize: 2 }, { Prefix: 'repro-page-' })) {
// a single page: ['repro-page-a', 'repro-page-b', 'repro-page-c']
}
await client.send(new ListBucketsCommand({ MaxBuckets: 0 }))
await client.send(new ListBucketsCommand({ ContinuationToken: 'not-a-token' }))
// both succeed with HTTP 200 and return every bucket
Expected behavior
MaxBuckets: 1returns one bucket and aContinuationToken.- The paginator yields
['repro-page-a', 'repro-page-b'], then['repro-page-c']. max-bucketsoutside 1 to 10,000 and invalid continuation tokens are rejected with 400.
Root cause
The ListBuckets route declares and forwards only prefix, so max-buckets and continuation-token are never validated or read. S3ProtocolHandler.listBuckets always lists every matching bucket with no order or limit.
- Lingua principale
- TypeScript
- Stelle
- 1.3k
- Fork
- 314
- Merge medio
- 2g 1h
- PR unite (30g)
- 97
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di supabase/storage
-
The sample application in storage article points to wrong URLForse di nuovo libera @prasadf18 l’ha presa 203 giorni fa e non c’è nessuna pull request aperta. Apertadocumentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 62/100
supabase/storage#557 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
S3 HeadObject ignores conditional request headersForse già presa @RaphaelFakhri l’ha presa 5 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
S3 PutObject ignores Content-MD5 integrity checksForse già presa @ferhatelmas l’ha presa 10 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 70/100
supabase/storage#1561 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Iceberg tenant table listing ignores pageSize and pageTokenForse già presa @ferhatelmas l’ha presa 10 giorni fa. Aperta
Difficoltà 4/5 1-2 giorni Idoneità per principianti 35/100
supabase/storage#1549 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
S3 PutObject drops the Expires system metadataForse già presa @ferhatelmas l’ha presa 10 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
supabase/storage#1548 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di supabase/storage
Issue simili
-
area:cli bug P4
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
bug from-studio
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
esengine/DeepSeek-Reasonix#14868 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
linxiv-dev/linXiv#384 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
scope:core type:security
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
follow-redirects updateAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
mailgun/mailgun.js#544 ·