Skip to content

Commit

Permalink
[UNDERTOW-1997] Corrected handling of security constraints with URL p…
Browse files Browse the repository at this point in the history
…attern '/'
  • Loading branch information
Kevin Wimmer authored and fl4via committed Aug 11, 2022
1 parent e8ae803 commit e2b1e68
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,14 @@ public SecurityPathMatch getSecurityInfo(final String path, final String method)
handleMatch(method, extensionMatch, currentMatch);
return new SecurityPathMatch(currentMatch.type, mergeConstraints(currentMatch));
}

// if nothing else, check for security info defined for URL pattern '/'
match = exactPathRoleInformation.get("/");
if (match != null) {
handleMatch(method, match, currentMatch);
return new SecurityPathMatch(currentMatch.type, mergeConstraints(currentMatch));
}

return new SecurityPathMatch(currentMatch.type, mergeConstraints(currentMatch));
}

Expand Down

0 comments on commit e2b1e68

Please sign in to comment.