Skip to content

πŸ› preserve IPv6 brackets in A2A base URLs - #3796

Open
ump45nose wants to merge 1 commit into
ModelEngine-Group:developfrom
ump45nose:fix/a2a-ipv6-base-url
Open

πŸ› preserve IPv6 brackets in A2A base URLs#3796
ump45nose wants to merge 1 commit into
ModelEngine-Group:developfrom
ump45nose:fix/a2a-ipv6-base-url

Conversation

@ump45nose

Copy link
Copy Markdown

What this PR does

A2A agent discovery derives a service base URL from the agent-card URL. Python URL parsing removes the brackets required around IPv6 literals, so https://[2001:db8::7]:8443/.well-known/agent-card.json was persisted as the invalid URL https://2001:db8::7:8443.

This change restores brackets when the parsed hostname is an IPv6 literal while preserving the existing behavior for hostnames, ports, paths, and user-info removal.

Validation

  • focused pytest: 1 passed, 135 deselected
  • focused Ruff fatal-error rules: passed
  • Python syntax compilation: passed
  • git diff --check: passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant