[
https://issues.apache.org/jira/browse/NIFI-1449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15892291#comment-15892291
]
ASF GitHub Bot commented on NIFI-1449:
--------------------------------------
Github user trixpan commented on the issue:
https://github.com/apache/nifi/pull/1553
@joewitt - Perhaps you would you be able to give me some insight here.
For some reason when I run the following lines of
testOutgoingMessageAttachment
```
extractAttachmentsRunner.enqueue(message);
extractAttachmentsRunner.run();
```
I hit the following error message:
```
[pool-5-thread-1] ERROR
org.apache.nifi.processors.email.ExtractEmailAttachments -
ExtractEmailAttachments[id=a209646b-88f5-4a59-bafb-7aba063ed481] Could not
parse the flowfile FlowFile[0,632793727136184.mockFlowFile,917B] as an email,
treating as failure: java.lang.IllegalStateException:
FlowFile[0,632793806568613.mockFlowFile,0B] already in use for an active
callback or InputStream created by ProcessSession.read(FlowFile) has not been
closed
[pool-5-thread-1] ERROR
org.apache.nifi.processors.email.ExtractEmailAttachments -
ExtractEmailAttachments[id=a209646b-88f5-4a59-bafb-7aba063ed481]
ExtractEmailAttachments[id=a209646b-88f5-4a59-bafb-7aba063ed481] failed to
process due to org.apache.nifi.processor.exception.FlowFileHandlingException:
FlowFile[0,632793727136184.mockFlowFile,917B] is not the most recent version of
this flow file within this session; rolling back session:
org.apache.nifi.processor.exception.FlowFileHandlingException:
FlowFile[0,632793727136184.mockFlowFile,917B] is not the most recent version of
this flow file within this session
java.lang.AssertionError:
org.apache.nifi.processor.exception.FlowFileHandlingException:
FlowFile[0,632793727136184.mockFlowFile,917B] is not the most recent version of
this flow file within this session
```
Not sure if this is a bug on ExtractEmailHeaders / ExtractEmailAttachments
or if it is a mistake within the test script itself?
Cheers
> PutEmail needs more unit tests
> ------------------------------
>
> Key: NIFI-1449
> URL: https://issues.apache.org/jira/browse/NIFI-1449
> Project: Apache NiFi
> Issue Type: Improvement
> Reporter: Joseph Percivall
> Assignee: Andre F de Miranda
>
> Currently the standard processor PutEmail only has two units. One verifies
> "testHostNotFound" and the other "testEmailPropertyFormatters". Both route to
> failure. There is no checking that the processor actually functions.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)