Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-1434

ArrayIndexOutOfBoundsException in PutEmail if property expansion fails for PutEmail.FROM

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.4.1
    • Fix Version/s: 0.5.0
    • Component/s: Core Framework
    • Labels:
      None

      Description

      If the FROM property in PutEmail evaluates to an empty string an ArrayIndexOutOfBoundsException is thrown from the following code:

      message.setFrom(InternetAddress.parse(context.getProperty(FROM)
                       .evaluateAttributeExpressions(flowFile).getValue())[0]);
      

      This leads to the FlowFile not being transferred to the REL_FAILURE relationship and the exception propagates out of the onTrigger method.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rpmiskin Richard Miskin
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: