This is an automated email from the ASF dual-hosted git repository. xxyu pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/kylin.git
The following commit(s) were added to refs/heads/master by this push: new f8f52af [KYLIN-5032] Not allow change project for a cubeInstance. f8f52af is described below commit f8f52aff9c973abac2cc06c25ea99e3801044af0 Author: yangjiang <yangji...@ebay.com> AuthorDate: Mon Jul 12 10:51:58 2021 +0800 [KYLIN-5032] Not allow change project for a cubeInstance. --- .../main/java/org/apache/kylin/rest/controller/CubeController.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server-base/src/main/java/org/apache/kylin/rest/controller/CubeController.java b/server-base/src/main/java/org/apache/kylin/rest/controller/CubeController.java index 64186c5..4510fe4 100644 --- a/server-base/src/main/java/org/apache/kylin/rest/controller/CubeController.java +++ b/server-base/src/main/java/org/apache/kylin/rest/controller/CubeController.java @@ -861,6 +861,12 @@ public class CubeController extends BasicController { return cubeRequest; } + if (!cube.getProject().equalsIgnoreCase(projectName)) { + String error = "Not allow change cube project!"; + updateRequest(cubeRequest, false, error); + return cubeRequest; + } + validateColumnFamily(desc); //cube renaming is not allowed