Skip to content

Commit 10bcd0f

Browse files
authored
security: upgrade spring mvc and tomcat.embed (#6339)
1 parent e5fab2d commit 10bcd0f

File tree

7 files changed

+66
-2
lines changed

7 files changed

+66
-2
lines changed

changes/en-us/2.x.md

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ Add changes here for all PR submitted to the 2.x branch.
9696
- [[#6145](https://github.com/apache/incubator-seata/pull/6145)] upgrade jettison to 1.5.4
9797
- [[#6144](https://github.com/apache/incubator-seata/pull/6144)] upgrade nacos client to 1.4.6
9898
- [[#6147](https://github.com/apache/incubator-seata/pull/6147)] upgrade kafka-clients to 3.6.1
99+
- [[#6339](https://github.com/apache/incubator-seata/pull/6339)] upgrade spring mvc and tomcat.embed
99100
- [[#6340](https://github.com/apache/incubator-seata/pull/6340)] upgrade and tidy some dependencies
100101
- [[#6350](https://github.com/apache/incubator-seata/pull/6350)] remove enableDegrade properties
101102
- [[#6349](https://github.com/apache/incubator-seata/pull/6349)] transfer dockerhub repo

changes/zh-cn/2.x.md

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
- [[#6144](https://github.com/apache/incubator-seata/pull/6144)] 升级Nacos依赖版本至1.4.6
9797
- [[#6145](https://github.com/apache/incubator-seata/pull/6145)] 升级 jettison依赖版本至1.5.4
9898
- [[#6147](https://github.com/apache/incubator-seata/pull/6147)] 升级 kafka-clients依赖至3.6.1
99+
- [[#6339](https://github.com/apache/incubator-seata/pull/6339)] 升级 spring mvc 和 tomcat.embed 依赖
99100
- [[#6340](https://github.com/apache/incubator-seata/pull/6340)] 升级和整理依赖
100101
- [[#6350](https://github.com/apache/incubator-seata/pull/6350)] 移除 enableDegrade 配置
101102

console/pom.xml

+21-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
<properties>
3535
<spring-boot-for-server.version>2.7.17</spring-boot-for-server.version>
3636
<spring-framework-for-server.version>5.3.30</spring-framework-for-server.version>
37+
<snakeyaml-for-server.version>2.0</snakeyaml-for-server.version>
38+
<tomcat-embed.version>9.0.83</tomcat-embed.version>
3739
</properties>
3840

3941
<dependencyManagement>
@@ -70,6 +72,16 @@
7072
<type>pom</type>
7173
<scope>import</scope>
7274
</dependency>
75+
<dependency>
76+
<groupId>org.yaml</groupId>
77+
<artifactId>snakeyaml</artifactId>
78+
<version>${snakeyaml-for-server.version}</version>
79+
</dependency>
80+
<dependency>
81+
<groupId>org.apache.tomcat.embed</groupId>
82+
<artifactId>tomcat-embed-core</artifactId>
83+
<version>${tomcat-embed.version}</version>
84+
</dependency>
7385
</dependencies>
7486
</dependencyManagement>
7587

@@ -89,8 +101,12 @@
89101
<artifactId>spring-boot-starter-web</artifactId>
90102
<exclusions>
91103
<exclusion>
92-
<artifactId>snakeyaml</artifactId>
104+
<groupId>org.apache.tomcat.embed</groupId>
105+
<artifactId>tomcat-embed-core</artifactId>
106+
</exclusion>
107+
<exclusion>
93108
<groupId>org.yaml</groupId>
109+
<artifactId>snakeyaml</artifactId>
94110
</exclusion>
95111
</exclusions>
96112
</dependency>
@@ -125,6 +141,10 @@
125141
<artifactId>jjwt-jackson</artifactId>
126142
<scope>runtime</scope>
127143
</dependency>
144+
<dependency>
145+
<groupId>org.apache.tomcat.embed</groupId>
146+
<artifactId>tomcat-embed-core</artifactId>
147+
</dependency>
128148
</dependencies>
129149
<profiles>
130150
<profile>

dependencies/pom.xml

+19
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@
119119
<kotlin.version>1.4.32</kotlin.version>
120120
<kotlin-coroutines.version>1.4.3</kotlin-coroutines.version>
121121

122+
<!-- # for web -->
123+
<spring-webmvc.version>5.3.26</spring-webmvc.version>
124+
<tomcat-embed.version>9.0.83</tomcat-embed.version>
125+
122126
<!-- # for test -->
123127
<mockito.version>4.11.0</mockito.version>
124128
<assertj-core.version>3.12.2</assertj-core.version>
@@ -157,6 +161,10 @@
157161
<groupId>org.springframework</groupId>
158162
<artifactId>spring-framework-bom</artifactId>
159163
</exclusion>
164+
<exclusion>
165+
<groupId>org.apache.tomcat.embed</groupId>
166+
<artifactId>tomcat-embed-core</artifactId>
167+
</exclusion>
160168
</exclusions>
161169
<type>pom</type>
162170
<scope>import</scope>
@@ -773,6 +781,17 @@
773781
<artifactId>janino</artifactId>
774782
<version>${janino-version}</version>
775783
</dependency>
784+
785+
<!-- web -->
786+
<dependency>
787+
<groupId>org.springframework</groupId>
788+
<artifactId>spring-webmvc</artifactId>
789+
<version>${spring-webmvc.version}</version>
790+
</dependency>
791+
<dependency>
792+
<groupId>org.apache.tomcat.embed</groupId>
793+
<artifactId>tomcat-embed-core</artifactId>
794+
</dependency>
776795
</dependencies>
777796
</dependencyManagement>
778797
</project>

server/pom.xml

+21-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
<properties>
3535
<spring-boot-for-server.version>2.7.17</spring-boot-for-server.version>
3636
<spring-framework-for-server.version>5.3.30</spring-framework-for-server.version>
37+
<snakeyaml-for-server.version>2.0</snakeyaml-for-server.version>
38+
<tomcat-embed.version>9.0.83</tomcat-embed.version>
3739
</properties>
3840

3941
<dependencyManagement>
@@ -70,6 +72,16 @@
7072
<type>pom</type>
7173
<scope>import</scope>
7274
</dependency>
75+
<dependency>
76+
<groupId>org.yaml</groupId>
77+
<artifactId>snakeyaml</artifactId>
78+
<version>${snakeyaml-for-server.version}</version>
79+
</dependency>
80+
<dependency>
81+
<groupId>org.apache.tomcat.embed</groupId>
82+
<artifactId>tomcat-embed-core</artifactId>
83+
<version>${tomcat-embed.version}</version>
84+
</dependency>
7385
</dependencies>
7486
</dependencyManagement>
7587

@@ -84,8 +96,12 @@
8496
<groupId>org.apache.logging.log4j</groupId>
8597
</exclusion>
8698
<exclusion>
87-
<artifactId>snakeyaml</artifactId>
99+
<groupId>org.apache.tomcat.embed</groupId>
100+
<artifactId>tomcat-embed-core</artifactId>
101+
</exclusion>
102+
<exclusion>
88103
<groupId>org.yaml</groupId>
104+
<artifactId>snakeyaml</artifactId>
89105
</exclusion>
90106
</exclusions>
91107
</dependency>
@@ -257,6 +273,10 @@
257273
<groupId>org.codehaus.janino</groupId>
258274
<artifactId>janino</artifactId>
259275
</dependency>
276+
<dependency>
277+
<groupId>org.apache.tomcat.embed</groupId>
278+
<artifactId>tomcat-embed-core</artifactId>
279+
</dependency>
260280
</dependencies>
261281

262282
<build>

test-mock-server/pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
</build>
4242

4343
<dependencies>
44+
<!-- The actual spring-related dependencies that take effect are from the seata-dependencies module, not the seata-server module-->
4445
<dependency>
4546
<groupId>org.apache.seata</groupId>
4647
<artifactId>seata-server</artifactId>

test/pom.xml

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
<artifactId>seata-tm</artifactId>
5050
<version>${project.version}</version>
5151
</dependency>
52+
53+
<!-- The actual spring-related dependencies that take effect are from the seata-dependencies module, not the seata-server module-->
5254
<dependency>
5355
<groupId>${project.groupId}</groupId>
5456
<artifactId>seata-server</artifactId>

0 commit comments

Comments
 (0)