This is an automated email from the ASF dual-hosted git repository.

mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 0ff99e7  Fix: trigger function rest-api (#2162)
0ff99e7 is described below

commit 0ff99e7cc62a0839477bfd19d4594dc4c7ba6663
Author: Rajan Dhabalia <[email protected]>
AuthorDate: Fri Jul 13 22:23:58 2018 -0700

    Fix: trigger function rest-api (#2162)
---
 .../pulsar/functions/worker/rest/api/v2/FunctionApiV2Resource.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/rest/api/v2/FunctionApiV2Resource.java
 
b/pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/rest/api/v2/FunctionApiV2Resource.java
index 71174dc..a23c41b 100644
--- 
a/pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/rest/api/v2/FunctionApiV2Resource.java
+++ 
b/pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/rest/api/v2/FunctionApiV2Resource.java
@@ -148,7 +148,7 @@ public class FunctionApiV2Resource extends 
FunctionApiResource {
     @Consumes(MediaType.MULTIPART_FORM_DATA)
     public Response triggerFunction(final @PathParam("tenant") String tenant,
                                     final @PathParam("namespace") String 
namespace,
-                                    final @PathParam("name") String 
functionName,
+                                    final @PathParam("functionName") String 
functionName,
                                     final @FormDataParam("data") String input,
                                     final @FormDataParam("dataStream") 
InputStream uploadedInputStream,
                                     final @FormDataParam("topic") String 
topic) {

Reply via email to