ListStreams: an ExclusiveStartStreamArn over 1024 characters is not refused with the maximum length sentence
维护者通常 3 天内回复
还没有人认领这个 Issue。
评估
调研方向
该检查位于 crates/engine/src/streams.rs 中的 handle_list_streams,该函数已经强制执行 ExclusiveStartStreamArn 的最小长度(37)。请阅读该函数,看看最小长度检查相对于 Limit 验证的位置,然后在旁边添加 1024 个字符的最大长度限制,并附上 DynamoDB 约束的说明句。当 1025 个字符的起始 ARN 返回该 ValidationException,且 1024 个字符的值被传递到存储层时,即为完成。
由索引模型根据 Issue 内容生成。
描述
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
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ExtendDB/extenddb 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 3 天内回复
-
难度 1/5 1 小时以内 新手友好度 78/100
维护者通常 3 天内回复
-
dev-mode key pair and healthcheck without a config file read a variable that is not UTF-8 as unset未关闭bug
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 3 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
ExtendDB/extenddb#1321 · 1 条评论 ·
维护者通常 3 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 3 天内回复
查看 ExtendDB/extenddb 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
topgrade-rs/topgrade#2540 ·
维护者通常 1 天内回复
-
Invalid JSON options for ngram and edge_ngram silently use defaults可能已有人在做 @Tilendlesa 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
noemaforge/vimanam#153 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
mufeedvh/code2prompt#355 ·