-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(maintenance): redirect to 503 page when platform is in maintenance
* add maintenance state check in authentication filter * add 503 jsp page that will be used when App directory error-503 page is not available Covers [DEV-479](https://bonitasoft.atlassian.net/browse/DEV-479)
- Loading branch information
1 parent
e0d6af7
commit 9beaa40
Showing
6 changed files
with
123 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<%-- Copyright (C) 2023 BonitaSoft S.A. | ||
BonitaSoft, 31 rue Gustave Eiffel - 38000 Grenoble | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 2.0 of the License, or | ||
(at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. --%> | ||
<%@page contentType="text/html; charset=UTF-8"%> | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/html"><head> | ||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | ||
<title>Error 500</title> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap.min.css"> | ||
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/error-style.css"> | ||
</head> | ||
<body> | ||
<div class="main-container"> | ||
<div class="error-title"> | ||
<h1 class="text-danger">Under maintenance...</h1> | ||
<h2 class="text-danger">Please try again later.</h2> | ||
</div> | ||
<div class="illustration-container"> | ||
<img alt="503 error" src="${pageContext.request.contextPath}/images/503.svg"> | ||
</div> | ||
<div class="error-message"> | ||
<h2 class="text-primary">The server is currently unable to handle this request due to scheduled maintenance.</h2> | ||
<p class="text-primary">503 Service Unavailable</p> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters