You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Divij Vaidya (Jira)" <ji...@apache.org> on 2023/05/15 12:33:00 UTC

[jira] [Resolved] (KAFKA-14962) Whitespace in ACL configuration causes Kafka startup to fail

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

Divij Vaidya resolved KAFKA-14962.
----------------------------------
      Reviewer: Manikumar
    Resolution: Fixed

> Whitespace in ACL configuration causes Kafka startup to fail
> ------------------------------------------------------------
>
>                 Key: KAFKA-14962
>                 URL: https://issues.apache.org/jira/browse/KAFKA-14962
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: Divij Vaidya
>            Assignee: Divij Vaidya
>            Priority: Minor
>             Fix For: 3.6.0
>
>
> Kafka's startup can fail if there is a trailing or leading whitespace for a configuration value. This fix makes it more tolerant towards cases where a user might accidentally add a trailing or leading whitespace in ACL configuration.
> {code:java}
> ERROR [KafkaServer id=3] Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
> java.lang.IllegalArgumentException: For input string: "true "
>     at scala.collection.StringOps$.toBooleanImpl$extension(StringOps.scala:943)
>     at kafka.security.authorizer.AclAuthorizer.$anonfun$configure$4(AclAuthorizer.scala:153) {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)