elasticsearch/client/rest-high-level
Tanguy Leroux 17f4e0b141
[7.17] Fix mount snapshot api ignoring unknown request parameter (#89061)
The High Level REST Client provides a MountSnapshotRequest#ignoredIndexSettings(String[]) method to define some index settings to ignore when mounting a snapshot as a searchable snapshot index.

Sadly the client generates a wrong request body field ignored_index_settings instead of ignore_index_settings. This wasn't caught until #75982 was reported because the parser of Mount API request ignores unknown fields in request body.

We fixed the wrong leniency of the request parser on the Elasticsearch side (#88987) starting version 8.5.0, and we decided to continue to ignore the ignored_index_settings generated by the HLRC bug to avoid breaking HLRC client usages.

This change fixes the request body generated by the HLRC to pass the correct field name. This fix is for versions 7.17.6+ (we do not expect to release new versions of HLRC in 8.x).

It also renames the HLRC methods to expose the change to client users.

Co-authored-by: bellengao <bellengao@tencent.com>
2022-08-04 19:12:06 +02:00
..
qa/ssl-enabled [7.x] Fix system property resolution at configuration time (#78682) 2021-10-05 07:33:13 -04:00
src [7.17] Fix mount snapshot api ignoring unknown request parameter (#89061) 2022-08-04 19:12:06 +02:00
build.gradle [7.17] Rework testing conventions gradle plugin (#87213) (#88422) 2022-07-12 10:58:40 +02:00
roles.yml Fix security origin for TokenService#findActiveTokensFor... (#47418) (#48280) 2019-10-21 13:15:05 +03:00
testnode.crt HLRC: Get SSL Certificates API (#34135) 2018-10-15 17:20:34 +01:00
testnode.jks HLRC: Get SSL Certificates API (#34135) 2018-10-15 17:20:34 +01:00