You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by mc...@apache.org on 2017/09/11 13:47:10 UTC

nifi git commit: NIFI-4370 View Details of NiFi Data Provenance throws NPE when cluster mode. This closes #2137

Repository: nifi
Updated Branches:
  refs/heads/master 9367c2806 -> 1aeb517c2


NIFI-4370 View Details of NiFi Data Provenance throws NPE when cluster mode. This closes #2137


Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/1aeb517c
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/1aeb517c
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/1aeb517c

Branch: refs/heads/master
Commit: 1aeb517c273d28f252f5d1fee62fa564cd9e8269
Parents: 9367c28
Author: combine <co...@combine-XPS-15-9560>
Authored: Sat Sep 9 21:51:21 2017 +0900
Committer: Matt Gilman <ma...@gmail.com>
Committed: Mon Sep 11 09:46:32 2017 -0400

----------------------------------------------------------------------
 .../org/apache/nifi/web/api/ApplicationResource.java     | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/nifi/blob/1aeb517c/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/ApplicationResource.java
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/ApplicationResource.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/ApplicationResource.java
index 1a50d04..b4d5ce4 100644
--- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/ApplicationResource.java
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/ApplicationResource.java
@@ -830,6 +830,17 @@ public abstract class ApplicationResource {
         }
     }
 
+    /**
+     * Replicates the request to the given node
+     *
+     * @param method   the HTTP method
+     * @param nodeUuid the UUID of the node to replicate the request to
+     * @return the response from the node
+     * @throws UnknownNodeException if the nodeUuid given does not map to any node in the cluster
+     */
+    protected Response replicate(final String method, final String nodeUuid) {
+        return replicate(method, getRequestParameters(), nodeUuid);
+    }
 
     private void ensureFlowInitialized() {
         if (!flowController.isInitialized()) {