From f816a5708ce1afdf9c4e43e2c667e3f034867c1d Mon Sep 17 00:00:00 2001 From: David Roberts Date: Fri, 24 Mar 2017 15:20:20 +0000 Subject: [PATCH] [ML] Rename action now it's run by _xpack instead of _system (elastic/x-pack-elasticsearch#831) The _xpack user cannot run internal actions Original commit: elastic/x-pack-elasticsearch@2dc4a30582625da8f29422ca90b8722c5bd2e538 --- .../elasticsearch/xpack/ml/action/UpdateProcessAction.java | 2 +- plugin/src/test/resources/org/elasticsearch/transport/actions | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/src/main/java/org/elasticsearch/xpack/ml/action/UpdateProcessAction.java b/plugin/src/main/java/org/elasticsearch/xpack/ml/action/UpdateProcessAction.java index b533c705d92..ffa85a6e501 100644 --- a/plugin/src/main/java/org/elasticsearch/xpack/ml/action/UpdateProcessAction.java +++ b/plugin/src/main/java/org/elasticsearch/xpack/ml/action/UpdateProcessAction.java @@ -36,7 +36,7 @@ public class UpdateProcessAction extends Action { public static final UpdateProcessAction INSTANCE = new UpdateProcessAction(); - public static final String NAME = "internal:admin/ml/job/update/process"; + public static final String NAME = "cluster:internal/ml/job/update/process"; private UpdateProcessAction() { super(NAME); diff --git a/plugin/src/test/resources/org/elasticsearch/transport/actions b/plugin/src/test/resources/org/elasticsearch/transport/actions index 91da1ecd097..5e878475f7a 100644 --- a/plugin/src/test/resources/org/elasticsearch/transport/actions +++ b/plugin/src/test/resources/org/elasticsearch/transport/actions @@ -137,10 +137,10 @@ cluster:admin/ml/datafeeds/start cluster:admin/ml/job/open cluster:admin/ml/job/update indices:internal/data/write/mldeletebyquery -internal:admin/ml/job/update/process +cluster:internal/ml/job/update/process cluster:admin/ml/delete_expired_data cluster:admin/persistent/create cluster:admin/persistent/start cluster:admin/persistent/completion cluster:admin/persistent/update_status -cluster:admin/persistent/remove \ No newline at end of file +cluster:admin/persistent/remove