BlueBrain / BlueBrain/nexus

Return a descriptive error if a payload contains an untranslatable character

Open
#3,757 0 comments 0 reactions 0 assignees View on GitHub
delta enhancement
Dominant language
Scala
Stars
301
Forks
76
PR merge metrics
No merged PRs in 30d

Description

**Motivation**
PostgreSQL does not accept the null character (`u0000`) inside a JSON text field. A client uploading a JSON containing such text field will get a internal sever error response. However we should consider it as a client error and state what the issue is.

**Acceptance criteria**
1. When a user `POST`s or `PUT`s a payload that contains the `u0000` untranslatable character, an error from the 4XX class should be returned, specifying the problem.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.