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 2014/12/23 21:37:46 UTC

[13/14] incubator-nifi git commit: NIFI-65: - Addressed issues submitting replays while clustered.

NIFI-65:
- Addressed issues submitting replays while clustered.

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

Branch: refs/heads/develop
Commit: 1a34e75c5b9cd29cf4496a4ff0d10b2b0519dc76
Parents: 2436b53
Author: Matt Gilman <ma...@gmail.com>
Authored: Tue Dec 23 14:56:08 2014 -0500
Committer: Matt Gilman <ma...@gmail.com>
Committed: Tue Dec 23 14:56:08 2014 -0500

----------------------------------------------------------------------
 .../main/java/org/apache/nifi/web/api/ProvenanceResource.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/1a34e75c/nar-bundles/framework-bundle/framework/web/nifi-web-api/src/main/java/org/apache/nifi/web/api/ProvenanceResource.java
----------------------------------------------------------------------
diff --git a/nar-bundles/framework-bundle/framework/web/nifi-web-api/src/main/java/org/apache/nifi/web/api/ProvenanceResource.java b/nar-bundles/framework-bundle/framework/web/nifi-web-api/src/main/java/org/apache/nifi/web/api/ProvenanceResource.java
index 24bdf0c..f0b38a1 100644
--- a/nar-bundles/framework-bundle/framework/web/nifi-web-api/src/main/java/org/apache/nifi/web/api/ProvenanceResource.java
+++ b/nar-bundles/framework-bundle/framework/web/nifi-web-api/src/main/java/org/apache/nifi/web/api/ProvenanceResource.java
@@ -166,7 +166,7 @@ public class ProvenanceResource extends ApplicationResource {
     public Response submitReplay(
             @Context HttpServletRequest httpServletRequest,
             @FormParam(CLIENT_ID) @DefaultValue(StringUtils.EMPTY) ClientIdParameter clientId,
-            @QueryParam("clusterNodeId") String clusterNodeId,
+            @FormParam("clusterNodeId") String clusterNodeId,
             @FormParam("eventId") LongParameter eventId) {
 
         // ensure the event id is specified
@@ -190,7 +190,7 @@ public class ProvenanceResource extends ApplicationResource {
                 targetNodes.add(targetNode.getNodeId());
 
                 // replicate the request to the specific node
-                return clusterManager.applyRequest(HttpMethod.GET, getAbsolutePath(), getRequestParameters(true), getHeaders(), targetNodes).getResponse();
+                return clusterManager.applyRequest(HttpMethod.POST, getAbsolutePath(), getRequestParameters(true), getHeaders(), targetNodes).getResponse();
             }
         }