[
https://issues.apache.org/jira/browse/NIFI-2761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15824094#comment-15824094
]
ASF subversion and git services commented on NIFI-2761:
-------------------------------------------------------
Commit 5b69c97f4157736c39b9d33e3beb43872979e2dc in nifi's branch
refs/heads/master from [~pvillard]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=5b69c97 ]
NIFI-2761 Fixed error message in bootstrap
This closes #1385
Signed-off-by: Andre F de Miranda <[email protected]>
> BootstrapCodec can throw exceptions with unintended message
> -----------------------------------------------------------
>
> Key: NIFI-2761
> URL: https://issues.apache.org/jira/browse/NIFI-2761
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 1.0.0
> Reporter: Jeff Storck
> Assignee: Pierre Villard
> Priority: Minor
>
> In BootstrapCodec.java, when the following tertiary expression gets
> evaluated, it never will be null, due to the string concatination. This
> causes the IOException message to always be "Details: " with the
> InvalidCommandException's toString result.
> {code}
> try {
> processRequest(cmd, args);
> } catch (final InvalidCommandException ice) {
> throw new IOException("Received invalid command from NiFi: " + line + " :
> " + ice.getMessage() == null ? "" : "Details: " + ice.toString());
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)