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

Creating a connector with missing name parameter throws a NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 0.10.2.0
    • None
    • connect

    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

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

              Dates

                Created:
                Updated:
                Resolved: