Description
Creating or updating metadata whose serialized JSON contains the Unicode NUL character (U+0000, encoded as \u0000) fails on PostgreSQL when the payload is cast to jsonb. The observed Topic case places the character in messageSchema.schemaFields[].description, but the same persistence boundary is shared by other entity and specialized JSON APIs.
Steps to reproduce
- Use PostgreSQL as the OpenMetadata database.
- Create a Topic whose nested schema-field description contains
\u0000.
- Observe an HTTP 500 caused by
ERROR: unsupported Unicode escape sequence; DETAIL: \u0000 cannot be converted to text while inserting topic_entity.json.
Expected behavior
The API write succeeds and removes the unsupported NUL character consistently before JSON reaches database storage.
Description
Creating or updating metadata whose serialized JSON contains the Unicode NUL character (
U+0000, encoded as\u0000) fails on PostgreSQL when the payload is cast tojsonb. The observed Topic case places the character inmessageSchema.schemaFields[].description, but the same persistence boundary is shared by other entity and specialized JSON APIs.Steps to reproduce
\u0000.ERROR: unsupported Unicode escape sequence; DETAIL: \u0000 cannot be converted to textwhile insertingtopic_entity.json.Expected behavior
The API write succeeds and removes the unsupported NUL character consistently before JSON reaches database storage.