Skip to content

Commit f0c164a

Browse files
authored
Merge pull request #315 from xdev-software/develop
Release
2 parents e5c52e9 + 953b9fb commit f0c164a

File tree

6 files changed

+15
-6
lines changed

6 files changed

+15
-6
lines changed

.config/checkstyle/checkstyle.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
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"/>

.idea/checkstyle-idea.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 2.1.1
2+
* Vaadin
3+
* `SecureVaadinRequestCache` no longer ignores `urlMapping`
4+
15
# 2.1.0
26
* Renamed `OAuth2AuthenticationTokenUtil` -> `OAuth2AuthenticationTokenExtractor`
37
* Updated dependencies

demo/integration-tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
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>

demo/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
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 -->
@@ -106,7 +106,7 @@
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>
@@ -210,7 +210,7 @@
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>

vaadin/src/main/java/software/xdev/sse/vaadin/SecureVaadinRequestCache.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
import com.vaadin.flow.router.RouteBaseData;
3939
import com.vaadin.flow.server.VaadinServlet;
4040
import com.vaadin.flow.server.VaadinServletService;
41+
import com.vaadin.flow.spring.security.RequestUtil;
4142
import 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);

0 commit comments

Comments
 (0)