File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
vaadin/src/main/java/software/xdev/sse/vaadin Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1+ # 2.1.1
2+ * Vaadin
3+ * ` SecureVaadinRequestCache ` no longer ignores ` urlMapping `
4+
15# 2.1.0
26* Renamed ` OAuth2AuthenticationTokenUtil ` -> ` OAuth2AuthenticationTokenExtractor `
37* Updated dependencies
Original file line number Diff line number Diff line change 3838import com .vaadin .flow .router .RouteBaseData ;
3939import com .vaadin .flow .server .VaadinServlet ;
4040import com .vaadin .flow .server .VaadinServletService ;
41+ import com .vaadin .flow .spring .security .RequestUtil ;
4142import com .vaadin .flow .spring .security .VaadinDefaultRequestCache ;
4243
4344
@@ -56,6 +57,9 @@ public class SecureVaadinRequestCache extends VaadinDefaultRequestCache
5657 @ Autowired
5758 protected ServletContext context ;
5859
60+ @ Autowired
61+ protected RequestUtil requestUtil ;
62+
5963 // Shortcut to save computation cost (no path is longer than this)
6064 protected int defaultPathMaxLength = 255 ;
6165 protected int defaultWildcardPathLengthAssumption = 48 ;
@@ -154,8 +158,8 @@ protected synchronized void initAllowedPaths()
154158 .stream ()
155159 .map (RouteBaseData ::getTemplate )
156160 .filter (s -> !s .isBlank ())
161+ .map (this .requestUtil ::applyUrlMapping )
157162 .map (this ::handleUrlParameterInPath )
158- .map (s -> "/" + s )
159163 .collect (Collectors .toSet ());
160164
161165 LOG .debug ("Allowed paths: {}" , allowedPaths );
You can’t perform that action at this time.
0 commit comments