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

Aperta
#162 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@ktsoator ci sta già lavorando.

Dal 13/11/2026.

  • #163 di @ktsoator — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
go
Ambito
cli

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
Go
Stelle
181
Fork
28
Merge medio
2g 11h
PR unite (30g)
22

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di a2aproject/a2a-cli

Tutte le issue di a2aproject/a2a-cli

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.