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

Đang mở Phù hợp với người mới
#1,335 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
82/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
api

Hướng nghiên cứu

Kiểm tra nằm trong handle_list_streams ở crates/engine/src/streams.rs, nơi đã áp dụng độ dài tối thiểu của ExclusiveStartStreamArn (37). Hãy đọc hàm đó để xem vị trí kiểm tra tối thiểu so với việc xác thực Limit, rồi thêm giới hạn tối đa 1024 ký tự cùng với câu ràng buộc của DynamoDB ngay bên cạnh. Hoàn thành khi một ARN bắt đầu dài 1025 ký tự trả về ValidationException đó và giá trị 1024 ký tự được chuyển đến bộ lưu trữ.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Rust
Star
517
Fork
60
Merge trung bình
3 ngày 21 giờ
Pull request đã merge (30 ngày)
116

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ExtendDB/extenddb

Tất cả issue của ExtendDB/extenddb

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.