From 1a34e75c5b9cd29cf4496a4ff0d10b2b0519dc76 Mon Sep 17 00:00:00 2001 From: Matt Gilman Date: Tue, 23 Dec 2014 14:56:08 -0500 Subject: [PATCH] NIFI-65: - Addressed issues submitting replays while clustered. --- .../main/java/org/apache/nifi/web/api/ProvenanceResource.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 24bdf0c0e7..f0b38a1b96 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(); } }