This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch ih in repository https://gitbox.apache.org/repos/asf/camel.git
commit b39506e3e0a2b3c36279543c0f2832d038f174cc Author: Claus Ibsen <[email protected]> AuthorDate: Mon Nov 24 07:20:46 2025 +0100 CAMEL-22693: Mark up EIP and endpoint headers that are of importance to make tooling, trouble shooting and development easier. --- .../camel/dsl/jbang/core/commands/action/CamelHistoryAction.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelHistoryAction.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelHistoryAction.java index e2cc05366190..3cf542cd879d 100644 --- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelHistoryAction.java +++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelHistoryAction.java @@ -74,8 +74,6 @@ public class CamelHistoryAction extends ActionWatchCommand { super(main); } - // TODO: calling endpoint, check next row for important response headers to show - @Override public Integer doWatchCall() throws Exception { if (name == null) { @@ -339,8 +337,9 @@ public class CamelHistoryAction extends ActionWatchCommand { Row next = i > 0 && i < rows.size() + 2 ? rows.get(i + 1) : null; String uri = r.endpoint != null ? r.endpoint.getString("endpoint") : null; - if (uri != null) { - var map = extractComponentModel(uri, r); + Row t = r.first ? r : next; // if sending to endpoint then we should find details in the next step as they are response + if (uri != null && t != null) { + var map = extractComponentModel(uri, t); // special for file String fn = map.remove("CamelFileName"); String fs = map.remove("CamelFileLength");
