Andrea Cosentino created CAMEL-25446:
----------------------------------------

             Summary: camel-jbang - sanitize endpoint URIs in the JSON 
dev-console output forwarded by the TUI AI panel
                 Key: CAMEL-25446
                 URL: https://issues.apache.org/jira/browse/CAMEL-25446
             Project: Camel
          Issue Type: Improvement
          Components: camel-jbang
            Reporter: Andrea Cosentino


The JSON dev-console output the TUI forwards to the AI model (via 
tui_get_status / tui_get_table / camel_get_errors, etc.) uses the raw endpoint 
URI (Endpoint.getEndpointUri()), while the on-screen text output uses the 
sanitized form (Endpoint.toString() / URISupport.sanitizeUri()). For 
consistency with the rest of the project (e.g. ProjectRoutes.safeUri), the 
values forwarded to the model should be sanitized the same way.

Affects the dev consoles in core/camel-console that back the status document 
and the TUI (EndpointDevConsole, RouteDevConsole, ConsumerDevConsole, 
ProducerDevConsole, KafkaDevConsole, ProcessorDetailDevConsole, 
DefaultErrorRegistry, BacklogTracer).

Module: core/camel-console, dsl/camel-jbang/camel-jbang-plugin-tui.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to