Skip to content

Rest: Path components with plus signs are decoded wrong #5341

@nkvoll

Description

@nkvoll

It's perfectly legal for literal '+' characters to appear in the path component on a URL, so for example:

$ curl 'http://localhost:9200/foo+bar' -XPOST
{"error":"InvalidIndexNameException[[foo bar] Invalid index name [foo bar], must not contain the following characters [\\, /, *, ?, \", <, >, |,  , ,]]","status":400}

should not result in an error, since the index name was "foo+bar", not "foo bar".

A workaround until this issue have been fixed is to percent-encode the plus sign using %2B, but this is not optimal, as it should not be required.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions