You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/02/02 03:49:39 UTC

[jira] [Commented] (NIFI-1434) ArrayIndexOutOfBoundsException in PutEmail if property expansion fails for PutEmail.FROM

    [ https://issues.apache.org/jira/browse/NIFI-1434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15127510#comment-15127510 ] 

ASF GitHub Bot commented on NIFI-1434:
--------------------------------------

Github user joewitt commented on the pull request:

    https://github.com/apache/nifi/pull/187#issuecomment-178328472
  
    Hello @rpmiskin Do you mind closing this PR?  Looks like @JPercivall just forgot to amend the comit entry to ensure it said 'This closes #187' but it does show as merged.


> ArrayIndexOutOfBoundsException in PutEmail if property expansion fails for PutEmail.FROM
> ----------------------------------------------------------------------------------------
>
>                 Key: NIFI-1434
>                 URL: https://issues.apache.org/jira/browse/NIFI-1434
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 0.4.1
>            Reporter: Richard Miskin
>
> If the FROM property in PutEmail evaluates to an empty string an ArrayIndexOutOfBoundsException is thrown from the following code:
> {code:java}
> message.setFrom(InternetAddress.parse(context.getProperty(FROM)
>                  .evaluateAttributeExpressions(flowFile).getValue())[0]);
> {code}
> This leads to the FlowFile not being transferred to the REL_FAILURE relationship and the exception propagates out of the onTrigger method.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)