From 6db418f47b602c0c68979f41b22ef0e10ae9a1db Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Mon, 12 Jun 2017 12:42:15 -0500 Subject: [PATCH] Use RequestPath Fixes gh-4389 --- .../util/matcher/PathMatcherServerWebExchangeMatcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webflux/src/main/java/org/springframework/security/web/server/util/matcher/PathMatcherServerWebExchangeMatcher.java b/webflux/src/main/java/org/springframework/security/web/server/util/matcher/PathMatcherServerWebExchangeMatcher.java index 8c59dcb5ed..33016cba2f 100644 --- a/webflux/src/main/java/org/springframework/security/web/server/util/matcher/PathMatcherServerWebExchangeMatcher.java +++ b/webflux/src/main/java/org/springframework/security/web/server/util/matcher/PathMatcherServerWebExchangeMatcher.java @@ -56,7 +56,7 @@ public final class PathMatcherServerWebExchangeMatcher implements ServerWebExcha if(this.method != null && !this.method.equals(request.getMethod())) { return MatchResult.notMatch(); } - String path = request.getPathWithinApplication(); + String path = request.getPath().pathWithinApplication().value(); boolean match = pathMatcher.match(pattern, path); if(!match) { return MatchResult.notMatch();