From 32bcf7b1a3e9c2ed38926f3b4eea50c5af9362f0 Mon Sep 17 00:00:00 2001 From: Craig Perkins Date: Tue, 16 Jul 2024 16:18:02 -0400 Subject: [PATCH] Pass set to SystemIndexRegistry.matchesSystemIndexPattern (#4569) Signed-off-by: Craig Perkins --- .../security/privileges/SystemIndexAccessEvaluator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/opensearch/security/privileges/SystemIndexAccessEvaluator.java b/src/main/java/org/opensearch/security/privileges/SystemIndexAccessEvaluator.java index 0f5ec9a1bc..38825a9bf1 100644 --- a/src/main/java/org/opensearch/security/privileges/SystemIndexAccessEvaluator.java +++ b/src/main/java/org/opensearch/security/privileges/SystemIndexAccessEvaluator.java @@ -179,7 +179,7 @@ private Set getAllSystemIndices(final Resolved requestedResolved) { .collect(Collectors.toSet()); if (isSystemIndexEnabled) { systemIndices.addAll(systemIndexMatcher.getMatchAny(requestedResolved.getAllIndices(), Collectors.toList())); - systemIndices.addAll(SystemIndexRegistry.matchesSystemIndexPattern(requestedResolved.getAllIndices().toArray(String[]::new))); + systemIndices.addAll(SystemIndexRegistry.matchesSystemIndexPattern(requestedResolved.getAllIndices())); } return systemIndices; }