You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Pierre Villard (JIRA)" <ji...@apache.org> on 2017/01/03 17:11:58 UTC
[jira] [Updated] (NIFI-2761) BootstrapCodec can throw exceptions
with unintended message
[ https://issues.apache.org/jira/browse/NIFI-2761?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pierre Villard updated NIFI-2761:
---------------------------------
Assignee: Pierre Villard
Status: Patch Available (was: Open)
> 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)