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

Open Beginner friendly
#1,335 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
rust
Domain
api

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

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.

Dominant language
Rust
Stars
517
Forks
60
Avg merge
3d 21h
Merged PRs (30d)
116

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ExtendDB/extenddb

All issues in ExtendDB/extenddb

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.