-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Validation issue while adding/removing backing indices in aliases #14384
Comments
Want to turn this into a (failing) YAML REST test? |
Actually there're two APIs we can add an index to an alias, the So for this issue, it targets the
or
, the usage is not as same as the
. In conclusion, I think there're three things we need to do:
|
Closed by #14719. |
Describe the bug
There is a bug in the
PUT _alias/{alias}
API that does not validate the fields inside the payload when adding/removing backing indices. While this results in a no-op, ideally an exception should be thrown and an incorrect payload should not be rejected.Related component
Indexing
To Reproduce
add
blockExample:
The response (unexpected) is the following:
Expected behavior
The service should throw an error in the above mentioned scenario as
abcd
is not a recognized field.Additional Details
Plugins
NA
Screenshots
NA
Host/Environment (please complete the following information):
NA
Additional context
Sample attached above
The text was updated successfully, but these errors were encountered: