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
- 318
- Merge medio
- 1g 23h
- PR unite (30g)
- 102
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 204 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 POST uploads reject keys that use the ${filename} variableForse già presa @hsusul l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 25/100
I maintainer di solito rispondono entro 1 giorno
-
S3 PutObject and CompleteMultipartUpload ignore If-None-MatchForse già presa @vignesh-chaturvedi l’ha presa 1 giorno fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
I maintainer di solito rispondono entro 1 giorno
-
S3 HeadObject ignores conditional request headersForse già presa @RaphaelFakhri l’ha presa 6 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 11 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
Tutte le issue di supabase/storage
Issue simili
-
bug low priority
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
laaielichter/Godotwright#81 ·
I maintainer di solito rispondono entro 1 giorno
-
gebied: infra
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
VincentSmedinga/sc-heerenveen-fansite#538 ·
I maintainer di solito rispondono entro 1 giorno
-
CI grants a token it does not need, never cancels superseded runs, and cannot fail on lint warningsApertagood first issue help wanted type:infrastructure type:security
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
Open-Glassbeetle/glassbeetle#247 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno