Skip to content

Commit

Permalink
Merge pull request #2825 from atlanhq/DG-898
Browse files Browse the repository at this point in the history
DG-898 Fix Persona custom asset expression
  • Loading branch information
nikhilbonte21 authored Feb 2, 2024
2 parents 7af8fff + d932818 commit aaa1102
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,12 @@ private void personaPolicyToESDslClauses(List<AtlasEntity> 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 + "/*")));
}

Expand Down

0 comments on commit aaa1102

Please sign in to comment.