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

Whitespace in ACL configuration causes Kafka startup to fail

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.6.0
    • None
    • None

    Description

      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.

      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) 

      Attachments

        Issue Links

          Activity

            People

              divijvaidya Divij Vaidya
              divijvaidya Divij Vaidya
              Manikumar Manikumar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: