This is an automated email from the ASF dual-hosted git repository. shaofengshi pushed a commit to branch 2.6.x in repository https://gitbox.apache.org/repos/asf/kylin.git
The following commit(s) were added to refs/heads/2.6.x by this push: new 2c16925 minor, api format 2c16925 is described below commit 2c1692525b76cbfecf211d524e288d78466b541e Author: shaofengshi <shaofeng...@apache.org> AuthorDate: Sat Jul 18 16:42:06 2020 +0800 minor, api format --- .../src/test/java/org/apache/kylin/restclient/ITRestClientTest.java | 1 + server/src/main/resources/kylinSecurity.xml | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kylin-it/src/test/java/org/apache/kylin/restclient/ITRestClientTest.java b/kylin-it/src/test/java/org/apache/kylin/restclient/ITRestClientTest.java index c97f08b..adf98fa 100644 --- a/kylin-it/src/test/java/org/apache/kylin/restclient/ITRestClientTest.java +++ b/kylin-it/src/test/java/org/apache/kylin/restclient/ITRestClientTest.java @@ -64,6 +64,7 @@ public class ITRestClientTest extends HBaseMetadataTestCase { logger.info("random jetty port: " + PORT); sysPropsOverride.override("spring.profiles.active", "testing"); sysPropsOverride.override("catalina.home", "."); // resources/log4j.properties ref ${catalina.home} + sysPropsOverride.override("kylin.web.set-config-enable", "true"); staticCreateTestMetadata(); startJetty(); } diff --git a/server/src/main/resources/kylinSecurity.xml b/server/src/main/resources/kylinSecurity.xml index c08ae70..adcf67f 100644 --- a/server/src/main/resources/kylinSecurity.xml +++ b/server/src/main/resources/kylinSecurity.xml @@ -248,7 +248,7 @@ <scr:intercept-url pattern="/api/streaming*/**" access="isAuthenticated()"/> <scr:intercept-url pattern="/api/job*/**" access="isAuthenticated()"/> <scr:intercept-url pattern="/api/admin/public_config" access="permitAll"/> - <scr:intercept-url pattern="/api/projects" access="permitAll"/> + <scr:intercept-url pattern="/api/projects" access="isAuthenticated()"/> <scr:intercept-url pattern="/api/admin*/**" access="hasRole('ROLE_ADMIN')"/> <scr:intercept-url pattern="/api/tables/**/snapshotLocalCache/**" access="permitAll"/> <scr:intercept-url pattern="/api/**" access="isAuthenticated()"/> @@ -293,7 +293,6 @@ <scr:intercept-url pattern="/api/models*/**" access="isAuthenticated()"/> <scr:intercept-url pattern="/api/streaming*/**" access="isAuthenticated()"/> <scr:intercept-url pattern="/api/job*/**" access="isAuthenticated()"/> - <scr:intercept-url pattern="/api/admin/config" access="permitAll"/> <scr:intercept-url pattern="/api/projects*/*" access="isAuthenticated()"/> <scr:intercept-url pattern="/api/admin*/**" access="hasRole('ROLE_ADMIN')"/> <scr:intercept-url pattern="/api/tables/**/snapshotLocalCache/**" access="permitAll"/>