xref: /OpenGrok/opengrok-web/src/main/webapp/enoent.jsp (revision 76f24e6a84dd2e0d6136d7e3c335016f5b959129)
10d40e9d0SAdam Hornáček<%--
20d40e9d0SAdam HornáčekCDDL HEADER START
30d40e9d0SAdam Hornáček
40d40e9d0SAdam HornáčekThe contents of this file are subject to the terms of the
50d40e9d0SAdam HornáčekCommon Development and Distribution License (the "License").
60d40e9d0SAdam HornáčekYou may not use this file except in compliance with the License.
70d40e9d0SAdam Hornáček
80d40e9d0SAdam HornáčekSee LICENSE.txt included in this distribution for the specific
90d40e9d0SAdam Hornáčeklanguage governing permissions and limitations under the License.
100d40e9d0SAdam Hornáček
110d40e9d0SAdam HornáčekWhen distributing Covered Code, include this CDDL HEADER in each
120d40e9d0SAdam Hornáčekfile and include the License file at LICENSE.txt.
130d40e9d0SAdam HornáčekIf applicable, add the following below this CDDL HEADER, with the
140d40e9d0SAdam Hornáčekfields enclosed by brackets "[]" replaced with your own identifying
150d40e9d0SAdam Hornáčekinformation: Portions Copyright [yyyy] [name of copyright owner]
160d40e9d0SAdam Hornáček
170d40e9d0SAdam HornáčekCDDL HEADER END
180d40e9d0SAdam Hornáček
19*76f24e6aSVladimir KotalCopyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
200d40e9d0SAdam HornáčekPortions Copyright 2011 Jens Elkner.
21a804b2d7SAdam HornáčekPortions Copyright (c) 2018, Chris Fraire <cfraire@me.com>.
220d40e9d0SAdam Hornáček
23a804b2d7SAdam Hornáček--%>
24a804b2d7SAdam Hornáček<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
25*76f24e6aSVladimir Kotal<%@page session="false" errorPage="error.jsp" isErrorPage="true"%><%
260d40e9d0SAdam Hornáček/* ---------------------- enoent.jsp start --------------------- */
270d40e9d0SAdam Hornáček{
280d40e9d0SAdam Hornáček    PageConfig cfg = PageConfig.get(request);
290d40e9d0SAdam Hornáček    cfg.checkSourceRootExistence();
300d40e9d0SAdam Hornáček    cfg.setTitle("File not found");
310d40e9d0SAdam Hornáček}
320d40e9d0SAdam Hornáček%><%@
330d40e9d0SAdam Hornáček
340d40e9d0SAdam Hornáčekinclude file="httpheader.jspf"
350d40e9d0SAdam Hornáček
360d40e9d0SAdam Hornáček%><body>
370d40e9d0SAdam Hornáček<div id="page">
380d40e9d0SAdam Hornáček    <div id="whole_header">
390d40e9d0SAdam Hornáček        <div id="header"><%@
400d40e9d0SAdam Hornáček
410d40e9d0SAdam Hornáčekinclude file="pageheader.jspf"
420d40e9d0SAdam Hornáček
430d40e9d0SAdam Hornáček        %></div>
440d40e9d0SAdam Hornáček        <div id="Masthead">Error: file not found</div>
450d40e9d0SAdam Hornáček        <div id="sbar"><%@
460d40e9d0SAdam Hornáček
470d40e9d0SAdam Hornáčekinclude file="menu.jspf"
480d40e9d0SAdam Hornáček
490d40e9d0SAdam Hornáček        %></div>
500d40e9d0SAdam Hornáček    </div>
510d40e9d0SAdam Hornáček<%
520d40e9d0SAdam Hornáček{
530d40e9d0SAdam Hornáček    PageConfig cfg = PageConfig.get(request);
540d40e9d0SAdam Hornáček    String configError = "";
550d40e9d0SAdam Hornáček    if (!cfg.hasHistory()) {
560d40e9d0SAdam Hornáček        configError = "Resource lacks history info. Was remote SCM side up when indexing occurred? "
570d40e9d0SAdam Hornáček            + "Cleanup history cache dir(or just the .gz for the file or db record) and rerun indexer making sure remote side will respond during indexing.";
580d40e9d0SAdam Hornáček   }
590d40e9d0SAdam Hornáček%>
600d40e9d0SAdam Hornáček    <h3 class="error">Error: File not found!</h3>
610d40e9d0SAdam Hornáček    <p>The requested resource is not available. </p>
620d40e9d0SAdam Hornáček    <p> <%= configError %> </p>
630d40e9d0SAdam Hornáček<%
640d40e9d0SAdam Hornáček}
650d40e9d0SAdam Hornáček/* ---------------------- enoent.jsp end --------------------- */
660d40e9d0SAdam Hornáček%><%@
670d40e9d0SAdam Hornáček
680d40e9d0SAdam Hornáčekinclude file="foot.jspf"
690d40e9d0SAdam Hornáček
700d40e9d0SAdam Hornáček%>