diff --git a/repository/src/main/java/org/apache/atlas/repository/store/aliasstore/ESAliasStore.java b/repository/src/main/java/org/apache/atlas/repository/store/aliasstore/ESAliasStore.java index b1236c82af..cd53a5c279 100644 --- a/repository/src/main/java/org/apache/atlas/repository/store/aliasstore/ESAliasStore.java +++ b/repository/src/main/java/org/apache/atlas/repository/store/aliasstore/ESAliasStore.java @@ -192,7 +192,12 @@ private void personaPolicyToESDslClauses(List policies, } for (String asset : assets) { - terms.add(asset); + if (asset.contains("*") || asset.contains("?")) { + //DG-898 Bug fix + allowClauseList.add(mapOf("wildcard", mapOf(QUALIFIED_NAME, asset))); + } else { + terms.add(asset); + } allowClauseList.add(mapOf("wildcard", mapOf(QUALIFIED_NAME, asset + "/*"))); }