You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Mickael Maison (Jira)" <ji...@apache.org> on 2020/12/03 14:38:01 UTC

[jira] [Resolved] (KAFKA-10460) ReplicaListValidator format checking is incomplete

     [ https://issues.apache.org/jira/browse/KAFKA-10460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mickael Maison resolved KAFKA-10460.
------------------------------------
    Fix Version/s: 2.8.0
       Resolution: Fixed

> ReplicaListValidator format checking is incomplete
> --------------------------------------------------
>
>                 Key: KAFKA-10460
>                 URL: https://issues.apache.org/jira/browse/KAFKA-10460
>             Project: Kafka
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 2.4.1
>            Reporter: Robin Palotai
>            Assignee: Ankit Kumar
>            Priority: Minor
>             Fix For: 2.8.0
>
>
> See [https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/server/ConfigHandler.scala#L220] . The logic is supposed to accept only two cases:
>  * list of k:v pairs
>  * a single '*'
> But in practice, since the disjunction's second part only checks that the head is '*', the case where a k:v list is headed by a star is also accepted (and then later broker dies at startup, refusing the value).
> This practically happened due to a CruiseControl bug (see [https://github.com/linkedin/cruise-control/issues/1322])
> Observed on 2.4, but seems to be present in HEAD's source as well.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)