This is an automated email from the ASF dual-hosted git repository. luigidemasi pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-kit.git
commit 2551c69cce818669bbdebfbf7826ef712820dd34 Author: Jinal Sarvaiya <[email protected]> AuthorDate: Wed Nov 4 14:13:59 2026 +0000 fix #100: reject conflicting fenced JSON envelopes explicitly --- .../java/org/apache/camel/kit/ship/controller/ShipStageResult.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kit/camel-kit-core/src/main/java/org/apache/camel/kit/ship/controller/ShipStageResult.java b/kit/camel-kit-core/src/main/java/org/apache/camel/kit/ship/controller/ShipStageResult.java index 06f43917..d91dbd00 100644 --- a/kit/camel-kit-core/src/main/java/org/apache/camel/kit/ship/controller/ShipStageResult.java +++ b/kit/camel-kit-core/src/main/java/org/apache/camel/kit/ship/controller/ShipStageResult.java @@ -284,7 +284,7 @@ record ShipStageResult( utf8(report, MAX_REPORT_BYTES, "stage report"); } - private static String extractJsonObject(String text) { + private static String extractJsonObject(String text) throws IOException { if (text == null) { return text; } @@ -296,7 +296,7 @@ record ShipStageResult( if (m.find()) { String first = m.group(1).strip(); if (m.find()) { - return stripped; + throw new IOException("Pi stage result contains conflicting fenced JSON envelopes"); } return first; }
