From b0204e64ca656cd56afbcc0326e9eb8ed2233c52 Mon Sep 17 00:00:00 2001 From: Nikhil P Bonte Date: Thu, 1 Feb 2024 19:52:38 +0530 Subject: [PATCH] Fix Persona policy Custom asset selector with ? wildcard --- .../org/apache/atlas/authorizer/authorizers/ListAuthorizer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repository/src/main/java/org/apache/atlas/authorizer/authorizers/ListAuthorizer.java b/repository/src/main/java/org/apache/atlas/authorizer/authorizers/ListAuthorizer.java index 64f845a76b..2bc7dccd5a 100644 --- a/repository/src/main/java/org/apache/atlas/authorizer/authorizers/ListAuthorizer.java +++ b/repository/src/main/java/org/apache/atlas/authorizer/authorizers/ListAuthorizer.java @@ -152,7 +152,7 @@ public static Map getDSLForResources(List entities, Set< List termsQualifiedNames = new ArrayList<>(); for (String entity: entities) { if (!entity.equals("*")) { - if (entity.contains("*")) { + if (entity.contains("*") || entity.contains("?")) { shouldClauses.add(getMap("wildcard", getMap("qualifiedName", entity))); } else { termsQualifiedNames.add(entity);