nifi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcgil...@apache.org
Subject nifi git commit: NIFI-4370 View Details of NiFi Data Provenance throws NPE when cluster mode. This closes #2137
Date Mon, 11 Sep 2017 13:47:10 GMT
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 <combine@combine-XPS-15-9560>
Authored: Sat Sep 9 21:51:21 2017 +0900
Committer: Matt Gilman <matt.c.gilman@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()) {


Mime
View raw message