From 5e19d80952a5ba7f77f80490451ce2827449276f Mon Sep 17 00:00:00 2001 From: Rainer Drexler Date: Sat, 7 Aug 2021 02:20:57 +0200 Subject: [PATCH] Fix #456: Stackoverflow on response and apikit router (#528) --- .../library/apikit/steps/ApikitHttpListenerMapping.java | 2 +- .../test/resources/e2e/apikit1/src/main/app/mule-config.xml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/mule-migration-tool-library/src/main/java/com/mulesoft/tools/migration/library/apikit/steps/ApikitHttpListenerMapping.java b/mule-migration-tool-library/src/main/java/com/mulesoft/tools/migration/library/apikit/steps/ApikitHttpListenerMapping.java index da324d8be..04d980239 100644 --- a/mule-migration-tool-library/src/main/java/com/mulesoft/tools/migration/library/apikit/steps/ApikitHttpListenerMapping.java +++ b/mule-migration-tool-library/src/main/java/com/mulesoft/tools/migration/library/apikit/steps/ApikitHttpListenerMapping.java @@ -100,7 +100,7 @@ private static Element getParentFlow(Element element) { if ("flow".equalsIgnoreCase(parent.getName())) return parent; - return getParentFlow(element); + return getParentFlow(parent); } private static String getExpressionValue(String str) { diff --git a/mule-migration-tool-tests/src/test/resources/e2e/apikit1/src/main/app/mule-config.xml b/mule-migration-tool-tests/src/test/resources/e2e/apikit1/src/main/app/mule-config.xml index b50470e69..d64939074 100644 --- a/mule-migration-tool-tests/src/test/resources/e2e/apikit1/src/main/app/mule-config.xml +++ b/mule-migration-tool-tests/src/test/resources/e2e/apikit1/src/main/app/mule-config.xml @@ -7,6 +7,9 @@ http://www.springframework.org/schema/beans http://www.springframework.org/schem + + +