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

Pranav Siby edited comment on KAFKA-20892 at 9/16/26 10:55 AM:
---------------------------------------------------------------

Hi [~lmnet], are you still working on this one? It's been quiet, so if you've 
moved on I'd be happy to pick it up. I have a small fix ready (guarding the 
numeric inference in {{Values.parseString}} so a top-level value like {{1::2}} 
isn't misread as a number, similar to the existing 
{{{}true{}}}/{{{}false{}}}/{{{}null{}}} handling). Happy to hand it over or 
collaborate, whichever you prefer.


was (Author: JIRAUSER314398):
Hi [~lmnet], are you still working on this one? It's been quiet, so if you've 
moved on I'd be happy to pick it up. I have a small fix ready (guarding the 
numeric inference in {{Values.parseString }}so a top-level value like {{1::2}} 
isn't misread as a number, similar to the existing 
{{{}true{}}}/{{{}false{}}}/{{{}null{}}} handling). Happy to hand it over or 
collaborate, whichever you prefer.

> 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