You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by sh...@apache.org on 2022/08/04 02:04:35 UTC

[kylin] branch upgrade-spring created (now 7331d67770)

This is an automated email from the ASF dual-hosted git repository.

shaofengshi pushed a change to branch upgrade-spring
in repository https://gitbox.apache.org/repos/asf/kylin.git


      at 7331d67770 upgrade spring-core and spring-security

This branch includes the following new commits:

     new 67b542fee3 Bump spring-security-core from 4.2.3.RELEASE to 5.5.7
     new 8c6890a171 Bump spring-core from 4.3.10.RELEASE to 5.2.22.RELEASE in /tool
     new 7331d67770 upgrade spring-core and spring-security

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[kylin] 03/03: upgrade spring-core and spring-security

Posted by sh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

shaofengshi pushed a commit to branch upgrade-spring
in repository https://gitbox.apache.org/repos/asf/kylin.git

commit 7331d677707cf3f8651077ce11df1606e4bf8b8c
Author: Shaofeng Shi <sh...@apache.org>
AuthorDate: Thu Aug 4 10:04:07 2022 +0800

    upgrade spring-core and spring-security
---
 pom.xml                                            |  4 +--
 .../kylin/rest/util/Log4jConfigListener.java       | 29 +---------------------
 server/pom.xml                                     | 16 ++++++++++++
 server/src/main/resources/kylinSecurity.xml        |  2 +-
 4 files changed, 20 insertions(+), 31 deletions(-)

diff --git a/pom.xml b/pom.xml
index 556ad4f4cb..0611c4396f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -118,7 +118,7 @@
     <commons-pool.version>2.5.0</commons-pool.version>
 
     <!-- Calcite deps, keep compatible with calcite.version -->
-    <jackson.version>2.6.7</jackson.version>
+    <jackson.version>2.10.0</jackson.version>
 
     <!-- Test Dependency versions -->
     <antlr.version>3.4</antlr.version>
@@ -164,7 +164,7 @@
     <dropwizard.version>3.1.2</dropwizard.version>
     <!-- REST Service, ref https://github.com/spring-projects/spring-boot/blob/v1.3.8.RELEASE/spring-boot-dependencies/pom.xml -->
     <spring.boot.version>1.3.8.RELEASE</spring.boot.version>
-    <spring.framework.version>4.3.26.RELEASE</spring.framework.version>
+    <spring.framework.version>5.2.22.RELEASE</spring.framework.version>
     <spring.framework.security.version>5.5.7</spring.framework.security.version>
     <spring.framework.security.extensions.version>1.0.2.RELEASE</spring.framework.security.extensions.version>
     <opensaml.version>2.6.6</opensaml.version>
diff --git a/server-base/src/main/java/org/apache/kylin/rest/util/Log4jConfigListener.java b/server-base/src/main/java/org/apache/kylin/rest/util/Log4jConfigListener.java
index 13eca7438c..2979030a54 100644
--- a/server-base/src/main/java/org/apache/kylin/rest/util/Log4jConfigListener.java
+++ b/server-base/src/main/java/org/apache/kylin/rest/util/Log4jConfigListener.java
@@ -18,32 +18,5 @@
 
 package org.apache.kylin.rest.util;
 
-import javax.servlet.ServletContextEvent;
-
-import org.apache.kylin.common.KylinConfig;
-
-public class Log4jConfigListener extends org.springframework.web.util.Log4jConfigListener {
-
-    private boolean isDebugTomcat;
-
-    public Log4jConfigListener() {
-        this.isDebugTomcat = KylinConfig.getInstanceFromEnv().isDevEnv();
-    }
-
-    @Override
-    public void contextInitialized(ServletContextEvent event) {
-        if (!isDebugTomcat) {
-            super.contextInitialized(event);
-        }
-        System.setProperty("needCheckCC", "true");
-
-    }
-
-    @Override
-    public void contextDestroyed(ServletContextEvent event) {
-        if (!isDebugTomcat) {
-            super.contextDestroyed(event);
-        }
-    }
-
+public class Log4jConfigListener {
 }
diff --git a/server/pom.xml b/server/pom.xml
index 3ca2f05fc6..f482d7b2b4 100644
--- a/server/pom.xml
+++ b/server/pom.xml
@@ -74,6 +74,22 @@
             </exclusions>
         </dependency>
 
+        <dependency>
+            <groupId>com.fasterxml.jackson.core</groupId>
+            <artifactId>jackson-core</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>com.fasterxml.jackson.core</groupId>
+            <artifactId>jackson-databind</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>com.fasterxml.jackson.core</groupId>
+            <artifactId>jackson-annotations</artifactId>
+            <scope>compile</scope>
+        </dependency>
+
         <dependency>
             <groupId>org.opensaml</groupId>
             <artifactId>opensaml</artifactId>
diff --git a/server/src/main/resources/kylinSecurity.xml b/server/src/main/resources/kylinSecurity.xml
index c6fbff972c..b16b91de8b 100644
--- a/server/src/main/resources/kylinSecurity.xml
+++ b/server/src/main/resources/kylinSecurity.xml
@@ -19,7 +19,7 @@
        xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation="http://www.springframework.org/schema/beans
 	http://www.springframework.org/schema/beans/spring-beans-4.3.xsd
 	http://www.springframework.org/schema/security
-	http://www.springframework.org/schema/security/spring-security-4.2.xsd
+	https://www.springframework.org/schema/security/spring-security-5.5.xsd
 	http://www.springframework.org/schema/util
 	http://www.springframework.org/schema/util/spring-util-4.3.xsd
     http://www.springframework.org/schema/context


[kylin] 01/03: Bump spring-security-core from 4.2.3.RELEASE to 5.5.7

Posted by sh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

shaofengshi pushed a commit to branch upgrade-spring
in repository https://gitbox.apache.org/repos/asf/kylin.git

commit 67b542fee38e5253224a4cf58ca5dbb0237fb3d9
Author: dependabot[bot] <49...@users.noreply.github.com>
AuthorDate: Wed May 25 23:11:31 2022 +0000

    Bump spring-security-core from 4.2.3.RELEASE to 5.5.7
    
    Bumps [spring-security-core](https://github.com/spring-projects/spring-security) from 4.2.3.RELEASE to 5.5.7.
    - [Release notes](https://github.com/spring-projects/spring-security/releases)
    - [Changelog](https://github.com/spring-projects/spring-security/blob/main/RELEASE.adoc)
    - [Commits](https://github.com/spring-projects/spring-security/compare/4.2.3.RELEASE...5.5.7)
    
    ---
    updated-dependencies:
    - dependency-name: org.springframework.security:spring-security-core
      dependency-type: direct:production
    ...
    
    Signed-off-by: dependabot[bot] <su...@github.com>
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index c4cf577583..556ad4f4cb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -165,7 +165,7 @@
     <!-- REST Service, ref https://github.com/spring-projects/spring-boot/blob/v1.3.8.RELEASE/spring-boot-dependencies/pom.xml -->
     <spring.boot.version>1.3.8.RELEASE</spring.boot.version>
     <spring.framework.version>4.3.26.RELEASE</spring.framework.version>
-    <spring.framework.security.version>4.2.3.RELEASE</spring.framework.security.version>
+    <spring.framework.security.version>5.5.7</spring.framework.security.version>
     <spring.framework.security.extensions.version>1.0.2.RELEASE</spring.framework.security.extensions.version>
     <opensaml.version>2.6.6</opensaml.version>
     <aspectj.version>1.8.9</aspectj.version>


[kylin] 02/03: Bump spring-core from 4.3.10.RELEASE to 5.2.22.RELEASE in /tool

Posted by sh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

shaofengshi pushed a commit to branch upgrade-spring
in repository https://gitbox.apache.org/repos/asf/kylin.git

commit 8c6890a1716a0eb765bcac31c4d6df14c9859ee7
Author: dependabot[bot] <49...@users.noreply.github.com>
AuthorDate: Wed May 25 06:04:10 2022 +0000

    Bump spring-core from 4.3.10.RELEASE to 5.2.22.RELEASE in /tool
    
    Bumps [spring-core](https://github.com/spring-projects/spring-framework) from 4.3.10.RELEASE to 5.2.22.RELEASE.
    - [Release notes](https://github.com/spring-projects/spring-framework/releases)
    - [Commits](https://github.com/spring-projects/spring-framework/compare/v4.3.10.RELEASE...v5.2.22.RELEASE)
    
    ---
    updated-dependencies:
    - dependency-name: org.springframework:spring-core
      dependency-type: direct:production
    ...
    
    Signed-off-by: dependabot[bot] <su...@github.com>
---
 tool/pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tool/pom.xml b/tool/pom.xml
index f9fff53998..a2f32bb924 100644
--- a/tool/pom.xml
+++ b/tool/pom.xml
@@ -32,7 +32,7 @@
     </parent>
 
     <properties>
-        <spring.framework.version>4.3.10.RELEASE</spring.framework.version>
+        <spring.framework.version>5.2.22.RELEASE</spring.framework.version>
     </properties>
 
     <dependencies>