You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Byron Ruth (JIRA)" <ji...@apache.org> on 2016/03/17 18:29:33 UTC
[jira] [Updated] (KAFKA-3417) Invalid characters in config
properties not be validated
[ https://issues.apache.org/jira/browse/KAFKA-3417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Byron Ruth updated KAFKA-3417:
------------------------------
Summary: Invalid characters in config properties not be validated (was: Invalid characters in config not be caught early enough)
> Invalid characters in config properties not be validated
> --------------------------------------------------------
>
> Key: KAFKA-3417
> URL: https://issues.apache.org/jira/browse/KAFKA-3417
> Project: Kafka
> Issue Type: Bug
> Components: config
> Affects Versions: 0.9.0.1
> Reporter: Byron Ruth
> Priority: Minor
>
> I ran into an error using a {{client.id}} with invalid characters (per the [config validator|https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/common/Config.scala#L25-L35]). I was able to get that exact error using the {{kafka-console-consumer}} script, presumably because I supplied a consumer properties file and it validated prior to hitting the server. However, when I use a client library (sarama for Go in this case), an error in the metrics subsystem is thrown [here|https://github.com/apache/kafka/blob/977ebbe9bafb6c1a6e1be69620f745712118fe80/clients/src/main/java/org/apache/kafka/common/metrics/Metrics.java#L380].
> Assuming the cause os related to the invalid characters, when the request header is decoded, the {{clientId}} should be validated prior to being used?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)