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

Special Characters In Schema Are Not Escaped #74

Open
Dragsaw opened this issue Oct 10, 2018 · 0 comments
Open

Special Characters In Schema Are Not Escaped #74

Dragsaw opened this issue Oct 10, 2018 · 0 comments

Comments

@Dragsaw
Copy link

Dragsaw commented Oct 10, 2018

When saving a schema with a escaped characters in a field value (e.g. \n, \t, \") the server validation fails with 500 error.

Example schema (note \n at the beginning of "doc" field):
{ "type": "record", "name": "evolution", "doc": "\nThis is a sample Avro schema to get you started. Please edit", "namespace": "com.landoop", "fields": [ { "name": "name", "type": "string" } ] }

The error happens because these characters are not escaped in the HTTP request:
image
The request should contain \\n instead of \n.

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

No branches or pull requests

1 participant