[ https://issues.apache.org/jira/browse/KAFKA-9221?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryanne Dolan resolved KAFKA-9221. --------------------------------- Resolution: Invalid not relevant to this project > Kafka REST Proxy wrongly converts quotes in message when sending json > --------------------------------------------------------------------- > > Key: KAFKA-9221 > URL: https://issues.apache.org/jira/browse/KAFKA-9221 > Project: Kafka > Issue Type: Bug > Components: tools > Affects Versions: 2.3.0 > Environment: Linux redhat > Reporter: Seweryn Habdank-Wojewodzki > Priority: Major > > Kafka REST Proxy has a problem when sending/converting json files (e.g. > json.new) into Kafka protocol. For example JSON file: > {code:java} > {"records":[{"value":"rest.kafka.testmetric,host=server.com,partition=8,topic=my_topic,url=http:--localhost:7071-metrics > 1337 1572276922"}]} > {code} > is sent using call to Kafka REST Proxy on localhost:8073: > {code:java} > curl -X POST -H "Content-Type: application/vnd.kafka.json.v2+json" -H > "Accept: application/vnd.kafka.v2+json" --data @json.new > http://localhost:8073/topics/somple_topic -i > {code} > in Kafka in some_topic we got: > {code:java} > "rest.kafka.testmetric,host=server.com,partition=8,topic=my_topic,url=http:--localhost:7071-metrics > 1337 1572276922" > {code} > but expected is that message has no quotes: > {code:java} > rest.kafka.testmetric,host=server.com,partition=8,topic=my_topic,url=http:--localhost:7071-metrics > 1337 1572276922 > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)