Well-known files route returns a false 503 for non-storage-program anchors
Maintainer thường phản hồi trong vòng 1 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
- 78/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ệ
- node.js, typescript
Hướng nghiên cứu
Đọc reference-implementations/dacs-directory/app/api/dacs/wellknown-files/route.ts và src/catalog/chain.ts, sau đó kiểm tra test/wellknown-files-route.test.ts. Xem route xử lý các anchor locator không thuộc chương trình lưu trữ như thế nào so với trường hợp node không trả về kết quả. Thêm trường hợp liệt kê dựa trên fixture và xác minh rằng trường hợp này trả về lỗi không thể thử lại, trong khi phản hồi vắng mặt từ node vẫn trả về 503.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Where: reference-implementations/dacs-directory/app/api/dacs/wellknown-files/route.ts:38 (on phase0-completion at the linked commit)
What goes wrong: For a listing whose anchor locator is not a stor- plus 40 hex characters address (for example the demo fixture seller), readAnchorResult (src/catalog/chain.ts:79) returns absent without calling the node. The route (route.ts:41-46) then answers 503 with 'the node reports no storage program at the anchor'. No node was asked, so the message is wrong, and 503 invites retries that can never succeed.
Suggested fix: Before the read at route.ts:38, check the locator against ^stor-[0-9a-f]{40}$ (or the anchor kind) and refuse with an accurate, non-retryable error that says the anchor is not a storage-program address, so the index cannot be generated from chain state. Do not use 503 for this case, and keep the existing 503 for an absent answer from the node. Add a test with a fixture-anchored listing to test/wellknown-files-route.test.ts.
Size: Small
This comes from a code review, not from a failing run, so please confirm it before starting. Send the fix as a pull request to phase0-completion. It merges once tests pass and a maintainer has approved it.
- Ngôn ngữ chính
- TypeScript
- Star
- 0
- Fork
- 3
- Merge trung bình
- 20 giờ 26 phút
- Pull request đã merge (30 ngày)
- 119
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của DACS-Agent-commerce/Community
-
Payment safety page: explain 'preimage' and 'claim' and name the cross-chain open state preciselyĐang mởcontributors-section
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
DACS-Agent-commerce/Community#366 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
contributors-section
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
DACS-Agent-commerce/Community#361 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
contributors-section
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
DACS-Agent-commerce/Community#359 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
contributors-section
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
DACS-Agent-commerce/Community#354 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
OpenAPI entry for the listing version route omits its 409 responseCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởcontributors-section
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
DACS-Agent-commerce/Community#348 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của DACS-Agent-commerce/Community
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
GetStream/stream-chat-react#3467 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
vercel-labs/ui#1139 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
generate_image reference URL guard lets through IPv4-mapped IPv6 hosts and 100.64.0.0/10Có thể đã có người làm @goranai đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] IntegerRange.contains counts a non-integer just above max as inside an inclusive rangeĐang mởbot:ai-assisted component:platform-js status:untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
midnightntwrk/platform-js#93 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100