[ 
https://issues.apache.org/jira/browse/KAFKA-20892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18116195#comment-18116195
 ] 

Yuriy Badalyantc commented on KAFKA-20892:
------------------------------------------

[~psiby] you can go on with your fix. Initially I wanted to create a PR 
straight away, but was distracted with other activities. I can help with the 
review.

> SimpleHeaderConverter infers a string header as a number if it starts with a 
> digit
> ----------------------------------------------------------------------------------
>
>                 Key: KAFKA-20892
>                 URL: https://issues.apache.org/jira/browse/KAFKA-20892
>             Project: Kafka
>          Issue Type: Bug
>          Components: connect
>    Affects Versions: 4.3.1
>            Reporter: Yuriy Badalyantc
>            Assignee: Yuriy Badalyantc
>            Priority: Minor
>
> When `SimpleHeaderConverter` tries to decode a header with value like this: 
> `1::2`, it mistakenly infers the type of the value as number and returns `1` 
> as a result of decoding.
> The reason is in the `Values.parseString` implementation. There was a 
> [ticket|https://issues.apache.org/jira/browse/KAFKA-9083] to fix a number of 
> similar parsing problems, but this particular problem was not included.



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

Reply via email to