[KEYCLOAK-6623] - Policy enforcer gets confused with similar paths ending with wildcards
This commit is contained in:
parent
190771ddf1
commit
668b67dcdb
1 changed files with 3 additions and 1 deletions
|
@ -95,7 +95,9 @@ class PathMatcher {
|
|||
}
|
||||
|
||||
if (WILDCARD == expectedUri.charAt(expectedUri.length() - 1)) {
|
||||
matchingAnyPath = entry;
|
||||
if (matchingAnyPath == null || matchingAnyPath.getPath().length() < matchingUri.length()) {
|
||||
matchingAnyPath = entry;
|
||||
}
|
||||
} else {
|
||||
int suffixIndex = expectedUri.indexOf(WILDCARD + ".");
|
||||
|
||||
|
|
Loading…
Reference in a new issue