Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-4938

Creating a connector with missing name parameter throws a NullPointerException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 0.10.2.0
    • Fix Version/s: None
    • Component/s: KafkaConnect
    • Labels:

      Description

      Creating a connector via the rest api runs into a NullPointerException, when omitting the name parameter in the request.

      POST 127.0.0.1:8083/connectors
      {
        "config": {
          "connector.class": "org.apache.kafka.connect.tools.MockSourceConnector",
          "tasks.max": "1",
          "topics": "test-topic"
        }
      }
      

      Results in a 500 return code, due to a NullPointerException being thrown when checking the name for slashes here. I believe this was introduced with the fix for KAFKA-4372

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                baluchicken Balint Molnar
                Reporter:
                sliebau Sönke Liebau
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: