bug: [flagparse] loopback references with paths default to HTTPS

Đang mở
#162 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 2 ngày

@ktsoator đang làm issue này rồi.

Từ ngày 13/11/2026.

  • #163 của @ktsoator — đang mở

Đá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
25/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
go
Lĩnh vực
cli

Hướng nghiên cứu

The bug is in how a2a card get picks a scheme for scheme-less loopback references that include a path, so start by reproducing it with a2a card get localhost/card.json --verbose. Find the scheme-defaulting code that handles bare loopback hosts and check why the path case falls through to HTTPS. Done means localhost, 127.0.0.1 and [::1] with a path resolve to http, and tests cover those cases. Pull request #163 is already open against this issue, so review it before starting any new work.

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

Mô tả

bug
What happened?

Scheme-less loopback references with a path and no port incorrectly default to HTTPS. They should default to HTTP, like bare loopback hosts.

Steps to reproduce

Run a2a card get localhost/card.json --verbose.

Actual: https://localhost/card.json
Expected: http://localhost/card.json

Also affects 127.0.0.1/card.json and [::1]/card.json.

CLI version

dev (53f9904)

Operating system & environment

macOS 26.6.2 (arm64)

Code of Conduct
  • I agree to follow this project's Code of Conduct
Ngôn ngữ chính
Go
Star
181
Fork
28
Merge trung bình
2 ngày 11 giờ
Pull request đã merge (30 ngày)
22

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 a2aproject/a2a-cli

Tất cả issue của a2aproject/a2a-cli

Issue tương tự

Thêm issue về Go

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.