luigidemasi opened a new pull request, #31357: URL: https://github.com/apache/camel/pull/31357
A plain-name A2A consumer served a card without an interface, so a client could fetch its card but could not discover where to send a message. A card with only a legacy URL also advertised HTTP+JSON when the consumer served JSON-RPC. Paul King's [Groovy and Spring AI Agent example](https://groovy.apache.org/blog/groovy-spring-ai-agent#_making_the_two_ends_meet) supplies a card to work around this. [CAMEL-28107](https://issues.apache.org/jira/browse/CAMEL-28107) The consumer now advertises its configured binding and A2A protocol version. It uses the legacy card URL when supplied, or derives the interface URL from the HTTP discovery request, including the mount path. File and bean cards retain their explicitly declared interfaces. Deployments behind a reverse proxy can use these to advertise their public address. Producer resolution keeps its existing behavior for remote legacy cards. The HTTP tests cover both bindings, POST to the discovered JSON-RPC URL under a base path, and preservation of declared interfaces. The consumer test also covers a legacy public URL with a JSON-RPC consumer. - [x] Targets `main` and includes the component guide, catalog copy, and upgrade note. - [x] All 587 `camel-a2a` tests passed. - [x] Spring AI Agent 0.8.0 with A2A Java SDK 1.4.0.Final discovered the plain-name consumer and completed the stock lookup using the advertised URL. - [x] Full root reactor `mvn clean install -DskipTests` passed. - [x] The commit includes AI co-authorship and a Signed-off-by trailer. Generated by OpenAI Codex via /oss-fix-issue on behalf of Luigi De Masi (@luigidemasi). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
