ListStreams: an ExclusiveStartStreamArn that is not a stream ARN answers "Invalid stream ARN format", where DynamoDB answers Invalid StreamArn or a length fault

Aperta Adatta ai principianti
#906 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Inizia da parse_stream_arn in crates/storage/src/util/arn.rs e segui come ListStreams convalida ExclusiveStartStreamArn. Confronta gli errori esistenti con le misurazioni DynamoDB dell’issue; aggiungi o individua test per le forme ARN malformate e i valori più corti di 37 caratteri. Il lavoro è completato quando entrambi i casi restituiscono gli errori di convalida compatibili con DynamoDB indicati.

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

Descrizione

bug

What ExtendDB does

parse_stream_arn in crates/storage/src/util/arn.rs refuses a start ARN it cannot read with Invalid stream ARN format: <value>. ListStreams gives that sentence for a table ARN and for a value of fewer than 37 characters.

Measured at 9234b54ac of #830 on 2026-11-07, SQLite and PostgreSQL, on the caller's account:

ExclusiveStartStreamArn ExtendDB
arn:aws:dynamodb:us-east-1:123456789012:table/pq830-probe ValidationException: Invalid stream ARN format: arn:aws:dynamodb:us-east-1:123456789012:table/pq830-probe
the same table ARN with U+0000 in the table segment Invalid stream ARN format: <value>
xyz Invalid stream ARN format: xyz
x<U+0000>y Invalid stream ARN format: x<U+0000>y

What DynamoDB does

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

ExclusiveStartStreamArn DynamoDB
a table ARN of the caller's account, with or without U+0000 in the table segment ValidationException: Invalid StreamArn
xyz and x<U+0000>y ValidationException: 1 validation error detected: Value at 'exclusiveStartStreamArn' failed to satisfy constraint: Member must have length greater than or equal to 37

Suggested fix

Answer Invalid StreamArn for a start ARN that is not a stream ARN, and check the minimum length of 37 characters before the shape. The maximum length, and the order of these checks against Limit, were not measured.

Related: #621, #830.

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

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.