nifi-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Storck (JIRA)" <j...@apache.org>
Subject [jira] [Created] (NIFI-2761) BootstrapCodec can throw cryptic exceptions
Date Mon, 12 Sep 2016 18:30:20 GMT
Jeff Storck created NIFI-2761:
---------------------------------

             Summary: BootstrapCodec can throw cryptic exceptions
                 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
            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)

Mime
View raw message