bug: [flagparse] loopback references with paths default to HTTPS
维护者通常 2 天内回复
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Go
- 星标
- 181
- 派生
- 28
- 平均合并
- 2 天 11 小时
- 30 天内合并 PR
- 22
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
a2aproject/a2a-cli 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
a2aproject/a2a-cli#159 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
a2aproject/a2a-cli#158 · 1 条评论 ·
维护者通常 2 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 75/100
a2aproject/a2a-cli#15 · 2 条评论 · 1 个 reaction ·
维护者通常 2 天内回复
-
难度 3/5 1-2 天 新手友好度 42/100
a2aproject/a2a-cli#160 ·
维护者通常 2 天内回复
-
bug: an unknown --a2a-version is not a usage error可能已有人在做 @ConnorMoss02 于 3 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 25/100
a2aproject/a2a-cli#155 ·
维护者通常 2 天内回复
查看 a2aproject/a2a-cli 的全部 Issue
相似的 Issue
-
ssa: wait errors drop the kstatus message, so health check failures don't say why可能已有人在做 @schdief 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
Pin and verify Security Insights schema in lintinsights target可能已有人在做 @imshubham22apr-gif 于 5 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
gemaraproj/gemara#618 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 64/100
a2aproject/a2a-go#597 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 4 天内回复
-
scopes: GetAllowedTopics, GetProtectedTopics, and GetScopedTopics include empty topic names and do not trim whitespace characters可能已有人在做 @patelshivani2283-lab 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复