mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-24 17:09:48 +00:00
update ShieldActionMapper to handle the change to use TransportSingleShardAction
This relates to commit cafc7078e228ab696d0689ec8b2119cb1626e9cd 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;
|
||||
case AnalyzeAction.NAME:
|
||||
case AnalyzeAction.NAME + "[s]":
|
||||
assert request instanceof AnalyzeRequest;
|
||||
String[] indices = ((AnalyzeRequest) request).indices();
|
||||
if (indices == null || indices.length == 0) {
|
||||
if (indices == null || (indices.length == 1 && indices[0] == null)) {
|
||||
return CLUSTER_PERMISSION_ANALYZE;
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user