From c2998a71ec4e262363858e7d54bb2e47afcda8c2 Mon Sep 17 00:00:00 2001 From: Michal Klempa Date: Mon, 15 Feb 2016 21:38:26 +0100 Subject: [PATCH] NIFI-1514 Fixed ExecuteStreamCommand when expressions in command arguments are used, contents are not split by command separator This closes #223. Signed-off-by: Aldrin Piri --- .../apache/nifi/processors/standard/ExecuteStreamCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ExecuteStreamCommand.java b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ExecuteStreamCommand.java index 38c8bd471e..44a03b914d 100644 --- a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ExecuteStreamCommand.java +++ b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ExecuteStreamCommand.java @@ -299,11 +299,11 @@ public class ExecuteStreamCommand extends AbstractProcessor { final String executeCommand = context.getProperty(EXECUTION_COMMAND).evaluateAttributeExpressions(inputFlowFile).getValue(); args.add(executeCommand); - final String commandArguments = context.getProperty(EXECUTION_ARGUMENTS).getValue(); + final String commandArguments = context.getProperty(EXECUTION_ARGUMENTS).evaluateAttributeExpressions(inputFlowFile).getValue(); final boolean ignoreStdin = Boolean.parseBoolean(context.getProperty(IGNORE_STDIN).getValue()); if (!StringUtils.isBlank(commandArguments)) { for (String arg : ArgumentUtils.splitArgs(commandArguments, context.getProperty(ARG_DELIMITER).getValue().charAt(0))) { - args.add(context.newPropertyValue(arg).evaluateAttributeExpressions(inputFlowFile).getValue()); + args.add(arg); } } final String workingDir = context.getProperty(WORKING_DIR).evaluateAttributeExpressions(inputFlowFile).getValue();