Skip to content

Array index out of bounds in PutMappingRequest#buildFromSimplifiedDef #19836

@arcneon

Description

@arcneon

Elasticsearch version: 2.3.4

JVM version: Not relevant

OS version: Not relevant

Description of the problem including expected versus actual behavior:

Array index out of bounds when trying to create a mapping from a java map. Looking at source of master, the probable cause is the loop variable being incremented inside the loop.

https://github.com/elastic/elasticsearch/blob/master/core/src/main/java/org/elasticsearch/action/admin/indices/mapping/put/PutMappingRequest.java#L189

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