You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Balint Molnar (JIRA)" <ji...@apache.org> on 2017/04/03 08:28:41 UTC
[jira] [Work stopped] (KAFKA-4938) Creating a connector with
missing name parameter throws a NullPointerException
[ https://issues.apache.org/jira/browse/KAFKA-4938?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on KAFKA-4938 stopped by Balint Molnar.
--------------------------------------------
> Creating a connector with missing name parameter throws a NullPointerException
> ------------------------------------------------------------------------------
>
> Key: KAFKA-4938
> URL: https://issues.apache.org/jira/browse/KAFKA-4938
> Project: Kafka
> Issue Type: Bug
> Components: KafkaConnect
> Affects Versions: 0.10.2.0
> Reporter: Sönke Liebau
> Assignee: Balint Molnar
> Priority: Minor
> Labels: newbie
>
> Creating a connector via the rest api runs into a NullPointerException, when omitting the name parameter in the request.
> {code}
> POST 127.0.0.1:8083/connectors
> {
> "config": {
> "connector.class": "org.apache.kafka.connect.tools.MockSourceConnector",
> "tasks.max": "1",
> "topics": "test-topic"
> }
> }
> {code}
> Results in a 500 return code, due to a NullPointerException being thrown when checking the name for slashes [here|https://github.com/apache/kafka/blob/trunk/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/rest/resources/ConnectorsResource.java#L91]. I believe this was introduced with the fix for [KAFKA-4372|https://issues.apache.org/jira/browse/KAFKA-4372]
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)