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

未关闭 适合新手
#1,335 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
82/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
rust
领域
api

调研方向

该检查位于 crates/engine/src/streams.rs 中的 handle_list_streams,该函数已经强制执行 ExclusiveStartStreamArn 的最小长度(37)。请阅读该函数,看看最小长度检查相对于 Limit 验证的位置,然后在旁边添加 1024 个字符的最大长度限制,并附上 DynamoDB 约束的说明句。当 1025 个字符的起始 ARN 返回该 ValidationException,且 1024 个字符的值被传递到存储层时,即为完成。

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Rust
星标
517
派生
60
平均合并
3 天 21 小时
30 天内合并 PR
116

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ExtendDB/extenddb 的其他 Issue

查看 ExtendDB/extenddb 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。