Issue in viewing XML data in Topics
thammuio opened this issue · comments
I have Web services writing data into Kafka in XML format. I am not able to view the messages properly in this topic. All the tags in XML are replaced with other special characters.
Does anybody else have this kind of issue,
Thanks,
Suri
Hi @thammuio , would it be possible to get a sample XML message that is in your topic and not viewable? We only use JSON internally so have not run into this.
hi @michael-pratt, Thanks for the reply. I may not be able to share the the XML., but here is the screenshot: This is an XML formatted message. Also I am not able to view any of the XML messages in the topics, json messages works fine in other topics.
Please let me know if you need any other details.
Thanks,
Suri
This issue leads also to a XSS vulnerability since the message is interpreted as html.
Just publish this message to a topic and view the message within KafkDrop:
<SCRIPT>alert("XSS")</SCRIPT>
The pull request should be accepted in order to fix this issue.