You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set CPS index options only when not using PIT (#137728)
PIT endpoints do not currently support CPS, and their `allowsCrossProject()`
method returns `false` anyway. This prevents the Security Action Filter from
rewriting the index expressions, and only those indices are used that are provided.
However, when the `_search` endpoint is hit with CPS enabled, along with the PIT
ID obtained previously by hitting the `_pit` endpoint, CPS index options are applied,
which causes a validation error when `TransportAction` calls `validate()`.
This change prevents the CPS index options application when PIT is found in the
request's body.
0 commit comments