ListStreams: an ExclusiveStartStreamArn over 1024 characters is not refused with the maximum length sentence
Maintainers usually reply within 3 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
Research direction
The check lives in handle_list_streams in crates/engine/src/streams.rs, which already enforces the minimum length of ExclusiveStartStreamArn (37). Read that function to see where the minimum check sits relative to the Limit validation, then add a maximum of 1024 characters with the DynamoDB constraint sentence next to it. Done when a 1025-character start ARN returns that ValidationException and a 1024-character value is passed through to storage.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Rust
- Stars
- 517
- Forks
- 60
- Avg merge
- 3d 21h
- Merged PRs (30d)
- 116
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ExtendDB/extenddb
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 3 days
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
Maintainers usually reply within 3 days
-
dev-mode key pair and healthcheck without a config file read a variable that is not UTF-8 as unsetOpenbug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 3 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ExtendDB/extenddb#1321 · 1 comment ·
Maintainers usually reply within 3 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 3 days
All issues in ExtendDB/extenddb
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
topgrade-rs/topgrade#2540 ·
Maintainers usually reply within 1 day
-
Invalid JSON options for ngram and edge_ngram silently use defaultsPossibly taken @Tilendlesa claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
noemaforge/vimanam#153 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
mufeedvh/code2prompt#355 ·