Przeglądaj źródła

Serde autoconfiguration fix (#2997)

Co-authored-by: iliax <ikuramshin@provectus.com>
Ilya Kuramshin 2 lat temu
rodzic
commit
c804a6d00b

+ 1 - 1
kafka-ui-api/src/main/java/com/provectus/kafka/ui/serdes/SerdesInitializer.java

@@ -171,7 +171,7 @@ public class SerdesInitializer {
     var clazz = builtInSerdeClasses.get(name);
     BuiltInSerde serde = createSerdeInstance(clazz);
     if (serdeConfig.getProperties().isEmpty()) {
-      if (!autoConfigureSerde(serde, serdeProps, globalProps)) {
+      if (!autoConfigureSerde(serde, clusterProps, globalProps)) {
         // no properties provided and serde does not support auto-configuration
         throw new ValidationException(name + " serde is not configured");
       }