bug: [flagparse] loopback references with paths default to HTTPS
Maintainers usually reply within 2 days
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 25/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Go
- Stars
- 181
- Forks
- 28
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 22
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from a2aproject/a2a-cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
a2aproject/a2a-cli#159 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
a2aproject/a2a-cli#158 · 1 comment ·
Maintainers usually reply within 2 days
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
a2aproject/a2a-cli#15 · 2 comments · 1 reaction ·
Maintainers usually reply within 2 days
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
a2aproject/a2a-cli#160 ·
Maintainers usually reply within 2 days
-
bug: an unknown --a2a-version is not a usage errorPossibly taken @ConnorMoss02 claimed this 3 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
a2aproject/a2a-cli#155 ·
Maintainers usually reply within 2 days
All issues in a2aproject/a2a-cli
Similar issues
-
ssa: wait errors drop the kstatus message, so health check failures don't say whyPossibly taken @schdief claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Pin and verify Security Insights schema in lintinsights targetPossibly taken @imshubham22apr-gif claimed this 5 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
gemaraproj/gemara#618 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
a2aproject/a2a-go#597 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 4 days
-
scopes: GetAllowedTopics, GetProtectedTopics, and GetScopedTopics include empty topic names and do not trim whitespace charactersPossibly taken @patelshivani2283-lab claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day