update ShieldActionMapper to handle the change to use TransportSingleShardAction
This relates to commit cafc7078e2
in elasticsearch
Original commit: elastic/x-pack-elasticsearch@72f8a92b80
This commit is contained in:
parent
4b5faf00ac
commit
1e63141bf2
|
@ -35,9 +35,10 @@ public class ShieldActionMapper {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case AnalyzeAction.NAME:
|
case AnalyzeAction.NAME:
|
||||||
|
case AnalyzeAction.NAME + "[s]":
|
||||||
assert request instanceof AnalyzeRequest;
|
assert request instanceof AnalyzeRequest;
|
||||||
String[] indices = ((AnalyzeRequest) request).indices();
|
String[] indices = ((AnalyzeRequest) request).indices();
|
||||||
if (indices == null || indices.length == 0) {
|
if (indices == null || (indices.length == 1 && indices[0] == null)) {
|
||||||
return CLUSTER_PERMISSION_ANALYZE;
|
return CLUSTER_PERMISSION_ANALYZE;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue