Skip to content

Conversation

Tim-Brooks
Copy link
Contributor

Backports the following commits to 8.10:

Currently the renameReplacement variable in the restore snapshot request
is intended to be a string literal for ccr. However, when a string is passed
to replaceAll in java $ and / will be treated as special characters. This
means that following indices with $ in them breaks. This commit fixes the
issue by quoting the special characters before calling replaceAll.

Fixes elastic#99078.
@Tim-Brooks Tim-Brooks added :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >bug auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. labels Oct 4, 2023
@elasticsearchmachine elasticsearchmachine merged commit 657cb5d into elastic:8.10 Oct 4, 2023
@Tim-Brooks Tim-Brooks deleted the backport/8.10/pr-99892 branch October 4, 2023 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. v8.10.3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants