Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON pretty printer modifies message content #1

Closed
winne42 opened this issue Sep 9, 2022 · 1 comment · Fixed by #2
Closed

JSON pretty printer modifies message content #1

winne42 opened this issue Sep 9, 2022 · 1 comment · Fixed by #2

Comments

@winne42
Copy link

winne42 commented Sep 9, 2022

We observed that "Format JSON" modifies the content of messages read from Kafka by escaping certain characters:

image

We tracked this down as being the default behavior of Gson, for added security if JSON is used in an HTML context. As the messages in kafkavisualizer are not (automatically) in an HTML context, this behavior is unexpected, and in our case unwanted. I will open a PR to disable HTML escaping for JSON pretty-printing.

@kumait
Copy link
Owner

kumait commented Sep 9, 2022

Thanks @winne42, I agree, I will merge your PR.

@kumait kumait closed this as completed Sep 9, 2022
kumait added a commit that referenced this issue Sep 9, 2022
…n_JSON_pretty_printer

#1 disable HTML escaping in JSON pretty printer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants