Github user markap14 commented on a diff in the pull request:
https://github.com/apache/nifi/pull/389#discussion_r61509041
--- Diff:
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/HandleHttpResponse.java
---
@@ -169,6 +174,7 @@ public void onTrigger(final ProcessContext context,
final ProcessSession session
return;
}
+ session.getProvenanceReporter().send(flowFile,
flowFile.getAttribute(HTTP_REQUEST_URI),
stopWatch.getElapsed(TimeUnit.MILLISECONDS));
--- End diff --
In this case, we are performing a SEND event, so it should be the
information that we are sending the data to (the client). Looking at this a bit
more, I think the URI used for the HandleHttpRequest is also wrong. They both
should be indicating the client's hostname, as this is where the data was
Received from and Sent to. Right now, I believe, the HandleHttpRequest is using
just the path of the URL (the Request URI), and that is a bug.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---