Invalid escape sequence returns Server Error in _bulk requests #48308
Labels
:Core/Infra/REST API
REST infrastructure and utilities
Team:Core/Infra
Meta label for core/infra team
Elasticsearch version: 6.8.3 ( also reproducible in 7.4.0 )
Plugins installed: []
JVM version: 1.8.0_191
OS version: Linux *** 3.10.0-957.27.2.el7.x86_64
Current behavior:
/_bulk
requests containing an invalid escape sequence ( as\N
) in the_id
field fail with500 Server Error
.Expected behavior:
Requests that are invalid fail with
400 Bad Request
Steps to reproduce:
Log entry:
Impact:
While this might seem like a fairly trivial thing to complain about, having "fake" 5xx errors makes managing elasticsearch unnecessarily challenging.
The text was updated successfully, but these errors were encountered: