Skip to content

_settings API fails to determine source format #19366

@popravich

Description

@popravich

Elasticsearch version: 2.1.2

JVM version: openjdk 8u91-b14-0ubuntu4~15.10.1

OS version: ubuntu 15.10

Description of the problem including expected versus actual behavior:

Trying to put settings through REST API using YAML format fails with exception json_parse_exception.

Steps to reproduce:

  1. simply run the following
curl -XPUT localhost:9200/some-index/_settings?pretty --data-binary '

---
analysis:
  analyzer:
    default: { type: keyword }
'

I believe that problem is here https://github.com/elastic/elasticsearch/blob/master/core/src/main/java/org/elasticsearch/common/settings/loader/SettingsLoaderFactory.java#L73-L79

PS: it made my day when I saw this lines, you guys are the best)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions