Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-3791

Incorrect regex parsing in start script of kafka image

XMLWordPrintable

    • False
    • False
    • Undefined

      In Docker-entrypoint script of kafka image, there is a regex that incorrectly parses global variables containing character '='.

      The regex

      for VAR in `env`
      do
      env_var=`echo "$VAR" | sed -r "s/(.)=./\1/g"`
      ...
      done

      Incorrectly parsed variable

      export KAFKA_LOG4J_OPTS="-Dlog4j.configuration=file:$KAFKA_HOME/config/log4j.properties"
      Expected content of $env_var is "KAFKA_LOG4J_OPTS."
      Actual content of $env_var is "KAFKA_LOG4J_OPTS=-Dlog4j.configuration"

              rhn-support-jnovotny Jiří Novotný (Inactive)
              rhn-support-jnovotny Jiří Novotný (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: