You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2026/07/13 17:31:00 UTC

[jira] [Created] (CAMEL-24054) EvalLanguageDevConsole - Add POST method support and exchange variables

Claus Ibsen created CAMEL-24054:
-----------------------------------

             Summary: EvalLanguageDevConsole - Add POST method support and exchange variables
                 Key: CAMEL-24054
                 URL: https://issues.apache.org/jira/browse/CAMEL-24054
             Project: Camel
          Issue Type: Improvement
          Components: camel-core
            Reporter: Claus Ibsen


The EvalLanguageDevConsole dev console currently has two limitations:

1. *GET-only HTTP access* — The dev console HTTP endpoint in ManagementHttpServer.setupDevConsole() only registers HttpMethod.GET. This imposes URL length limits when sending large expressions or message bodies via query parameters. Adding POST support would allow sending parameters as a JSON request body, avoiding these limits.

2. *No exchange variables support* — The console creates a DefaultExchange and populates the message body and headers, but does not support setting exchange variables on the dummy exchange before evaluation. A new VARIABLES option (similar to the existing HEADERS option) should be added.

Affected files:
- core/camel-console/src/main/java/org/apache/camel/impl/console/EvalLanguageDevConsole.java
- components/camel-platform-http-main/src/main/java/org/apache/camel/component/platform/http/main/ManagementHttpServer.java



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