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

REST APIs return object representation instead of string for config values, default values and recommended values

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.0.0
    • Fix Version/s: 0.10.0.0
    • Component/s: KafkaConnect
    • Labels:
      None

      Description

      In the response of

      PUT /connector-plugins/{name}/config/validate
      

      The value.value, value.recommended_values and definition.default_value (If the ConfigKey is not String type) are serialized by Jackson to something other than strings.

      We actually expect the values to be strings, and this should mirror the current requirements of submitting configs which is that the config is a Map<String, String>.

      This can be fixed by adding ConfigDef support for converting values to strings, corresponding to all the parse methods, and then making sure all these outputs of values have type String instead of Object.

        Attachments

          Activity

            People

            • Assignee:
              liquanpei Liquan Pei
              Reporter:
              liquanpei Liquan Pei
              Reviewer:
              Ewen Cheslack-Postava
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified