Skip to content

IndicesOptions wilcard state parsing is too lenient #50762

Closed as not planned
Closed as not planned
@jaymode

Description

@jaymode

The logic to parse IndicesOptions.WildcardStates from a String or List of strings is overly lenient in that the ordering of values results in a different output when none is used as one of the values.

Input Output
all,none
none,all open, closed
none,open open
open,none
closed,none,open open

The parsing should be made more strict to disallow none with other values. There could be some users relying on this behavior, so to maintain BWC we could deprecate the use of none with other values in 7.x and disallow none with other values in 8.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions