A request with no X-Amz-Target and no Authorization gets MissingAuthenticationToken, where DynamoDB answers UnknownOperationException

Đang mở Phù hợp với người mới
#1,287 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
84/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-api-design

Hướng nghiên cứu

Đọc extract_operation trong crates/server/src/request_helpers.rs và bài kiểm thử đơn vị missing_target_no_auth_returns_missing_auth_token. So sánh chú thích trong mã và bài kiểm thử với phản hồi DynamoDB được đo trong issue này. Hoàn tất khi chú thích và bài kiểm thử phản ánh hành vi UnknownOperationException được báo cáo đối với yêu cầu không có cả hai header.

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

Mô tả

Amazon DynamoDB answers a POST with no X-Amz-Target header and no Authorization header with UnknownOperationException and no message. ExtendDB answers MissingAuthenticationToken.

Measured in us-east-1 on 21 Nov 2026 with a POST to / with the Content-Type application/x-amz-json-1.0, the body {"Limit": 1}, and neither header. The request went out twice and got the same answer both times. The ExtendDB column is SQLite at f0170bde8.

Part of the answer DynamoDB ExtendDB
Status 400 400
Body {"__type":"com.amazon.coral.service#UnknownOperationException"} {"__type":"com.amazon.coral.service#MissingAuthenticationToken","message":"Missing Authentication Token"}
X-Amz-Crc32 1368724161 2747205903

extract_operation in crates/server/src/request_helpers.rs (lines 21 to 30) answers MissingAuthenticationToken when the request has neither header, and UnknownOperationException when it has an Authorization header but no X-Amz-Target. Its comment says that DynamoDB answers MissingAuthenticationToken when the auth headers are absent too. The measurement above contradicts that sentence. The unit test missing_target_no_auth_returns_missing_auth_token pins the current answer.

The fix for #1075 changes ExtendDB's body for this request to the new type and message of that error. It does not change which error this request gets.

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.