Skip to content

The Unified and Autonomous Development Platform

Do not try to show incompatibilities page while initing

Robin Shen78eee1567afa
diff --git a/server-core/src/main/java/io/onedev/server/web/page/base/BasePage.java b/server-core/src/main/java/io/onedev/server/web/page/base/BasePage.java
index 3cac9486f2..a1e7fbd5a3 100644
--- a/server-core/src/main/java/io/onedev/server/web/page/base/BasePage.java
+++ b/server-core/src/main/java/io/onedev/server/web/page/base/BasePage.java
@@ -86,6 +86,7 @@ public abstract class BasePage extends WebPage {
if (SecurityUtils.isAdministrator()
&& !(getPage() instanceof IncompatibilitiesPage)
+ && !(getPage() instanceof ServerInitPage)
&& new File(Bootstrap.installDir, Upgrade.INCOMPATIBILITIES_SINCE_UPGRADED_VERSION).exists()) {
throw new RestartResponseAtInterceptPageException(IncompatibilitiesPage.class);
}