ListStreams: an ExclusiveStartStreamArn over 1024 characters is not refused with the maximum length sentence

Aperta Adatta ai principianti
#1,335 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
82/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
api

Direzione di ricerca

Il controllo si trova in handle_list_streams in crates/engine/src/streams.rs, che già applica la lunghezza minima di ExclusiveStartStreamArn (37). Leggi quella funzione per capire dove si colloca il controllo del minimo rispetto alla validazione di Limit, poi aggiungi un massimo di 1024 caratteri accanto alla frase sul vincolo DynamoDB. È completato quando un ARN iniziale di 1025 caratteri restituisce quella ValidationException e un valore di 1024 caratteri viene passato allo storage.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

What ExtendDB does

handle_list_streams in crates/engine/src/streams.rs checks only the minimum length of ExclusiveStartStreamArn (37). A longer value reaches storage, which answers by its shape.

Measured at 8c643330c on a dev-mode SQLite build, 2026-11-21:

ExclusiveStartStreamArn ExtendDB
1025 x characters ValidationException: Invalid stream ARN format: xxx... (Invalid StreamArn once the fix for #906 merges)
a stream ARN of the caller's account with x appended to 1025 characters 200, a page of streams
a table ARN of the caller's account with x appended to 1025 characters Invalid stream ARN format: ... (Invalid StreamArn after the same fix)

What DynamoDB does

Measured in us-east-1 on 2026-11-21, twice, with SDK parameter validation off:

ExclusiveStartStreamArn DynamoDB
1025 x characters ValidationException: 1 validation error detected: Value at 'exclusiveStartStreamArn' failed to satisfy constraint: Member must have length less than or equal to 1024
a stream ARN padded to 1025 characters the same
a table ARN padded to 1025 characters the same

A value of exactly 1024 characters was not sent.

Suggested fix

Refuse a start ARN over 1024 characters in handle_list_streams with the constraint sentence above, beside the minimum length check. Measure 1024 characters first to pin the boundary, and the order against Limit 0.

Lingua principale
Rust
Stelle
517
Fork
60
Merge medio
3g 21h
PR unite (30g)
116

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ExtendDB/extenddb

Tutte le issue di ExtendDB/extenddb

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.