Skip to content

Commit 28cedc4

Browse files
dependabot[bot]hit-lacus
authored andcommitted
KYLIN-5214 upgrade spring-core and spring-security
1 parent 66e83b4 commit 28cedc4

File tree

5 files changed

+22
-33
lines changed

5 files changed

+22
-33
lines changed

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
<commons-pool.version>2.5.0</commons-pool.version>
119119

120120
<!-- Calcite deps, keep compatible with calcite.version -->
121-
<jackson.version>2.6.7</jackson.version>
121+
<jackson.version>2.10.0</jackson.version>
122122

123123
<!-- Test Dependency versions -->
124124
<antlr.version>3.4</antlr.version>
@@ -164,8 +164,8 @@
164164
<dropwizard.version>3.1.2</dropwizard.version>
165165
<!-- REST Service, ref https://github.com/spring-projects/spring-boot/blob/v1.3.8.RELEASE/spring-boot-dependencies/pom.xml -->
166166
<spring.boot.version>1.3.8.RELEASE</spring.boot.version>
167-
<spring.framework.version>4.3.26.RELEASE</spring.framework.version>
168-
<spring.framework.security.version>4.2.3.RELEASE</spring.framework.security.version>
167+
<spring.framework.version>5.2.22.RELEASE</spring.framework.version>
168+
<spring.framework.security.version>5.5.7</spring.framework.security.version>
169169
<spring.framework.security.extensions.version>1.0.2.RELEASE</spring.framework.security.extensions.version>
170170
<opensaml.version>2.6.6</opensaml.version>
171171
<aspectj.version>1.8.9</aspectj.version>

server-base/src/main/java/org/apache/kylin/rest/util/Log4jConfigListener.java

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -18,32 +18,5 @@
1818

1919
package org.apache.kylin.rest.util;
2020

21-
import javax.servlet.ServletContextEvent;
22-
23-
import org.apache.kylin.common.KylinConfig;
24-
25-
public class Log4jConfigListener extends org.springframework.web.util.Log4jConfigListener {
26-
27-
private boolean isDebugTomcat;
28-
29-
public Log4jConfigListener() {
30-
this.isDebugTomcat = KylinConfig.getInstanceFromEnv().isDevEnv();
31-
}
32-
33-
@Override
34-
public void contextInitialized(ServletContextEvent event) {
35-
if (!isDebugTomcat) {
36-
super.contextInitialized(event);
37-
}
38-
System.setProperty("needCheckCC", "true");
39-
40-
}
41-
42-
@Override
43-
public void contextDestroyed(ServletContextEvent event) {
44-
if (!isDebugTomcat) {
45-
super.contextDestroyed(event);
46-
}
47-
}
48-
21+
public class Log4jConfigListener {
4922
}

server/pom.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,22 @@
7474
</exclusions>
7575
</dependency>
7676

77+
<dependency>
78+
<groupId>com.fasterxml.jackson.core</groupId>
79+
<artifactId>jackson-core</artifactId>
80+
<scope>compile</scope>
81+
</dependency>
82+
<dependency>
83+
<groupId>com.fasterxml.jackson.core</groupId>
84+
<artifactId>jackson-databind</artifactId>
85+
<scope>compile</scope>
86+
</dependency>
87+
<dependency>
88+
<groupId>com.fasterxml.jackson.core</groupId>
89+
<artifactId>jackson-annotations</artifactId>
90+
<scope>compile</scope>
91+
</dependency>
92+
7793
<dependency>
7894
<groupId>org.opensaml</groupId>
7995
<artifactId>opensaml</artifactId>

server/src/main/resources/kylinSecurity.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation="http://www.springframework.org/schema/beans
2020
http://www.springframework.org/schema/beans/spring-beans-4.3.xsd
2121
http://www.springframework.org/schema/security
22-
http://www.springframework.org/schema/security/spring-security-4.2.xsd
22+
https://www.springframework.org/schema/security/spring-security-5.5.xsd
2323
http://www.springframework.org/schema/util
2424
http://www.springframework.org/schema/util/spring-util-4.3.xsd
2525
http://www.springframework.org/schema/context

tool/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</parent>
3333

3434
<properties>
35-
<spring.framework.version>4.3.10.RELEASE</spring.framework.version>
35+
<spring.framework.version>5.2.22.RELEASE</spring.framework.version>
3636
</properties>
3737

3838
<dependencies>

0 commit comments

Comments
 (0)