Error variant comments and the requirements table give HTTP 403 or 404 for errors that ExtendDB and DynamoDB answer with HTTP 400

Đang mở Phù hợp với người mới
#1,288 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 5 ngày

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

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
88/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
backend

Hướng nghiên cứu

Đọc DynamoDbError::status_code trong crates/core/src/error/mod.rs cùng với các chú thích tài liệu của ba biến thể, rồi đối chiếu chúng với bảng lỗi trong docs/design/01-requirements.md. Cập nhật các mô tả trạng thái mâu thuẫn để khớp với hành vi HTTP 400 được nêu trong issue; hoàn tất khi cả ba biến thể và các mục trong bảng đều khớp với status_code.

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

Mô tả

DynamoDbError::status_code in crates/core/src/error/mod.rs returns HTTP 400 for UnknownOperationException, IncompleteSignature and UnrecognizedClientException. Its comments say that DynamoDB answers these with 400. The doc comments of the three variants, and the error table of docs/design/01-requirements.md, give another status.

Error Doc comment in crates/core/src/error/mod.rs docs/design/01-requirements.md Status that ExtendDB and DynamoDB send
UnknownOperationException SP-ERR-002: HTTP 404. (line 79) 404 (line 128) 400
IncompleteSignature SP-ERR-002: HTTP 403. (line 89) 403 (line 111) 400
UnrecognizedClientException SP-ERR-002: HTTP 403. (line 92) 403 (line 129) 400

Measured in us-east-1 on 21 Nov 2026, each request twice with the same answer both times, DynamoDB answered HTTP 400 in these cases:

  • IncompleteSignatureException, for DescribeTable requests with a malformed Authorization header.
  • UnrecognizedClientException, for a well-formed header with an unknown access key.
  • UnknownOperationException, for a request with no X-Amz-Target. ExtendDB at f0170bde8 sends the status that status_code returns, HTTP 400.

The fix for #1075 changes the same two lines for MissingAuthenticationToken to 400.

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

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.