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

Pranav Siby commented on KAFKA-20892:
-------------------------------------

[~lmnet] thanks for offering to take a look! I've raised a PR for this ticket. 
Small change guarding the numeric parsing in {{{}Values.parseString{}}}, 
similar to how it's done in {{{}canParseSingleTokenLiteral{}}}.

 

> 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: Pranav Siby
>            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