HBASE-20398 Redirect doesn't work on web UI

This commit is contained in:
Balazs Meszaros 2018-04-17 14:58:08 +02:00 committed by Michael Stack
parent 32764bfb2c
commit b926d359b2
4 changed files with 32 additions and 5 deletions

View File

@ -0,0 +1,27 @@
<%--
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
--%>
<div>
Go <a href="javascript:history.back()">Back</a>, or wait for the redirect.
</div>
<script type="text/javascript">
<!--
setTimeout("history.back()", 5000);
-->
</script>

View File

@ -63,7 +63,7 @@
<h1>RSGroups are not enabled</h1>
</div>
</div>
<p>Go <a href="javascript:history.back()">Back</a>, or wait for the redirect.
<jsp:include page="redirect.jsp" />
<%
} else if (rsGroupName == null || rsGroupName.isEmpty() ||
(rsGroupInfo = RSGroupTableAccessor.getRSGroupInfo(
@ -74,7 +74,7 @@
<h1>RSGroup: <%= rsGroupName %> does not exist</h1>
</div>
</div>
<p>Go <a href="javascript:history.back()">Back</a>, or wait for the redirect.
<jsp:include page="redirect.jsp" />
<%
} else {
List<Address> rsGroupServers = new ArrayList<>();

View File

@ -72,7 +72,7 @@
<h1>Snapshot "<%= snapshotName %>" does not exist</h1>
</div>
</div>
<p>Go <a href="javascript:history.back()">Back</a>, or wait for the redirect.
<jsp:include page="redirect.jsp" />
<% } else { %>
<div class="row">
<div class="page-header">

View File

@ -185,7 +185,7 @@ if ( fqtn != null ) {
}
}
%>
<p>Go <a href="javascript:history.back()">Back</a>, or wait for the redirect.
<jsp:include page="redirect.jsp" />
</div>
<%
} else {
@ -811,7 +811,7 @@ Actions:
</div>
</div>
<p><hr><p>
<p>Go <a href="javascript:history.back()">Back</a>, or wait for the redirect.
<jsp:include page="redirect.jsp" />
</div>
<% } %>