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

ArrayIndexOutOfBoundsException in PutEmail if property expansion fails for PutEmail.FROM

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.4.1
    • 0.5.0
    • Core Framework
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: