-
Notifications
You must be signed in to change notification settings - Fork 25.5k
Closed
Labels
:Core/Infra/REST APIREST infrastructure and utilitiesREST infrastructure and utilities>bugTeam:Core/InfraMeta label for core/infra teamMeta label for core/infra teamv8.0.0-rc1
Description
when an invalid media type is used on content-type or Accept header but with compatible-with parameter an exception is thrown which is not handled and emits a WARN log message
nothing is returned to a server
reproduce:
curl --request PUT \
--url 'http://localhost:9200/my_index1?include_type_name=true' \
--header 'Accept: aaa/bbb' \
--header 'Authorization: Basic ZWxhc3RpYzpwYXNzd29yZA==' \
--header 'Content-Type: aaa/bbb;compatible-with=7' \
--data '{
"mappings": {
"type1": {
"properties": {
"location": {
"type": "geo_shape"
}
}
}
}
}'
we should handle this exception and return something meaning full to a user
I have a feeling that it might have been discussed already. @jakelandis @joegallo do you remember? any thoughts?
Metadata
Metadata
Assignees
Labels
:Core/Infra/REST APIREST infrastructure and utilitiesREST infrastructure and utilities>bugTeam:Core/InfraMeta label for core/infra teamMeta label for core/infra teamv8.0.0-rc1