From 01a95114deb10ef6939f9ae3099fbcbd4a317ca4 Mon Sep 17 00:00:00 2001 From: CJ Cenizal Date: Wed, 29 Jul 2020 12:45:06 -0700 Subject: [PATCH 1/2] Add leading slash to transport.request path. --- x-pack/plugins/snapshot_restore/server/routes/api/policy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/snapshot_restore/server/routes/api/policy.ts b/x-pack/plugins/snapshot_restore/server/routes/api/policy.ts index b8e7012529554..4667618c70a42 100644 --- a/x-pack/plugins/snapshot_restore/server/routes/api/policy.ts +++ b/x-pack/plugins/snapshot_restore/server/routes/api/policy.ts @@ -236,7 +236,7 @@ export function registerPolicyRoutes({ 'transport.request', { method: 'GET', - path: `_resolve/index/*`, + path: `/_resolve/index/*`, query: { expand_wildcards: 'all,hidden', }, From b742211be5f6af2a4b7e44195af48533cb34fbc7 Mon Sep 17 00:00:00 2001 From: CJ Cenizal Date: Wed, 29 Jul 2020 12:48:03 -0700 Subject: [PATCH 2/2] Remove unnecessary 'hidden' expand_wildcards option, since 'all' includes hidden indices. --- x-pack/plugins/snapshot_restore/server/routes/api/policy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/snapshot_restore/server/routes/api/policy.ts b/x-pack/plugins/snapshot_restore/server/routes/api/policy.ts index 4667618c70a42..688a1a409680a 100644 --- a/x-pack/plugins/snapshot_restore/server/routes/api/policy.ts +++ b/x-pack/plugins/snapshot_restore/server/routes/api/policy.ts @@ -238,7 +238,7 @@ export function registerPolicyRoutes({ method: 'GET', path: `/_resolve/index/*`, query: { - expand_wildcards: 'all,hidden', + expand_wildcards: 'all', }, } );