File tree Expand file tree Collapse file tree 6 files changed +15
-6
lines changed
vaadin/src/main/java/software/xdev/sse/vaadin Expand file tree Collapse file tree 6 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 8585 <property name =" tokens" value =" CLASS_DEF" />
8686 </module >
8787 <module name =" IllegalImport" />
88+ <module name =" IllegalSymbol" />
8889 <module name =" InterfaceIsType" />
8990 <module name =" JavadocStyle" >
9091 <property name =" checkFirstSentence" value =" false" />
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 8686 <dependency >
8787 <groupId >software.xdev</groupId >
8888 <artifactId >testcontainers-advanced-imagebuilder</artifactId >
89- <version >2.4.1 </version >
89+ <version >2.5.0 </version >
9090 </dependency >
9191 <dependency >
9292 <groupId >org.testcontainers</groupId >
Original file line number Diff line number Diff line change 8282 <dependency >
8383 <groupId >org.springdoc</groupId >
8484 <artifactId >springdoc-openapi-starter-webmvc-ui</artifactId >
85- <version >3.0.2 </version >
85+ <version >3.0.3 </version >
8686 </dependency >
8787
8888 <!-- Caching for actuator -->
106106 <dependency >
107107 <groupId >org.mariadb.jdbc</groupId >
108108 <artifactId >mariadb-java-client</artifactId >
109- <version >3.5.7 </version >
109+ <version >3.5.8 </version >
110110 <!-- https://mariadb.com/kb/en/about-mariadb-connector-j/#size-consideration -->
111111 <exclusions >
112112 <exclusion >
210210 <plugin >
211211 <groupId >io.github.git-commit-id</groupId >
212212 <artifactId >git-commit-id-maven-plugin</artifactId >
213- <version >9.1 .0</version >
213+ <version >10.0 .0</version >
214214 </plugin >
215215
216216 <plugin >
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