elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
69.84k stars 24.71k forks source link

POST on _mapping endpoint fails with NPE #8301

Closed jprante closed 9 years ago

jprante commented 9 years ago

ES 1.3.4

The following command makes not much sense, but it fails with an NPE.

POST /alias/type/_mapping

Result

{
   "error": "RemoteTransportException[[Kierrok][inet[/10.3.2.31:19300]][indices/mapping/put]]; nested: NullPointerException; ",
   "status": 500
}

where alias is an index alias.

No error in the server logs.

clintongormley commented 9 years ago

The same thing happens with an index instead of an alias. The NPE seems to come from the missing body.

rjernst commented 9 years ago

This was fixed in #7618 and is in 1.4.