You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "Jeff Storck (JIRA)" <ji...@apache.org> on 2016/09/12 20:30:20 UTC

[jira] [Created] (MINIFI-105) BootstrapCodec can throw exceptions with unintended message

Jeff Storck created MINIFI-105:
----------------------------------

             Summary: BootstrapCodec can throw exceptions with unintended message
                 Key: MINIFI-105
                 URL: https://issues.apache.org/jira/browse/MINIFI-105
             Project: Apache NiFi MiNiFi
          Issue Type: Bug
          Components: Core Framework
            Reporter: Jeff Storck
            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)