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.
The logic to parse
IndicesOptions.WildcardStatesfrom a String or List of strings is overly lenient in that the ordering of values results in a different output whennoneis used as one of the values.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
nonewith other values in 7.x and disallownonewith other values in 8.0.