You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Pranav Siby (Jira)" <ji...@apache.org> on 2026/09/17 10:06:00 UTC

[jira] [Assigned] (KAFKA-20892) SimpleHeaderConverter infers a string header as a number if it starts with a digit

     [ https://issues.apache.org/jira/browse/KAFKA-20892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pranav Siby reassigned KAFKA-20892:
-----------------------------------

    Assignee: Pranav Siby  (was: Yuriy Badalyantc)

> 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)