[ 
https://issues.apache.org/jira/browse/MINIFI-105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aldrin Piri updated MINIFI-105:
-------------------------------
    Affects Version/s: 0.0.1

> 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
>    Affects Versions: 0.0.1
>            Reporter: Jeff Storck
>            Assignee: Joseph Percivall
>            Priority: Minor
>             Fix For: 0.1.0
>
>
> 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)

Reply via email to