kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject kafka git commit: MINOR: Fix regex on connector path param in ConnectorsResource
Date Mon, 07 Nov 2016 16:48:29 GMT
Repository: kafka
Updated Branches:
  refs/heads/trunk 5307efe1a -> 8f2e0a5ec


MINOR: Fix regex on connector path param in ConnectorsResource

Author: Ewen Cheslack-Postava <me@ewencp.org>

Reviewers: Shikhar Bhushan <shikhar@schmizz.net>, Konstantine Karantasis <konstantine@confluent.io>,
Jason Gustafson <jason@confluent.io>

Closes #2108 from ewencp/fix-rest-api-regex


Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/8f2e0a5e
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/8f2e0a5e
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/8f2e0a5e

Branch: refs/heads/trunk
Commit: 8f2e0a5ec1dd285fcf47e2df396b897176c2008b
Parents: 5307efe
Author: Ewen Cheslack-Postava <me@ewencp.org>
Authored: Mon Nov 7 08:47:28 2016 -0800
Committer: Jason Gustafson <jason@confluent.io>
Committed: Mon Nov 7 08:47:28 2016 -0800

----------------------------------------------------------------------
 .../kafka/connect/runtime/rest/resources/ConnectorsResource.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/8f2e0a5e/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/rest/resources/ConnectorsResource.java
----------------------------------------------------------------------
diff --git a/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/rest/resources/ConnectorsResource.java
b/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/rest/resources/ConnectorsResource.java
index 0d856e3..39e9a0f 100644
--- a/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/rest/resources/ConnectorsResource.java
+++ b/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/rest/resources/ConnectorsResource.java
@@ -214,7 +214,7 @@ public class ConnectorsResource {
     }
 
     @DELETE
-    @Path("/{connector : .+}")
+    @Path("/{connector}")
     public void destroyConnector(final @PathParam("connector") String connector,
                                  final @QueryParam("forward") Boolean forward) throws Throwable
{
         FutureCallback<Herder.Created<ConnectorInfo>> cb = new FutureCallback<>();


Mime
View raw message