>From a321054f6564c1e9776115aca4d5b3194e9ac699 Mon Sep 17 00:00:00 2001
From: "Endi S. Dewata" <edewata@redhat.com>
Date: Mon, 20 Feb 2017 17:05:23 +0100
Subject: [PATCH] Renamed index.html to index.jsp in OCSP UI.

The index.html files in OCSP UI have been renamed to index.jsp such
that they can be protected by access banner.

https://fedorahosted.org/pki/ticket/2582
---
 base/ocsp/shared/webapps/ocsp/agent/header.template                | 2 +-
 base/ocsp/shared/webapps/ocsp/agent/{index.html => index.jsp}      | 0
 base/ocsp/shared/webapps/ocsp/agent/index.template                 | 2 +-
 base/ocsp/shared/webapps/ocsp/agent/ocsp/{index.html => index.jsp} | 0
 base/ocsp/shared/webapps/ocsp/{index.html => index.jsp}            | 0
 5 files changed, 2 insertions(+), 2 deletions(-)
 rename base/ocsp/shared/webapps/ocsp/agent/{index.html => index.jsp} (100%)
 rename base/ocsp/shared/webapps/ocsp/agent/ocsp/{index.html => index.jsp} (100%)
 rename base/ocsp/shared/webapps/ocsp/{index.html => index.jsp} (100%)

diff --git a/base/ocsp/shared/webapps/ocsp/agent/header.template b/base/ocsp/shared/webapps/ocsp/agent/header.template
index f39de296c0b1606a92483ed05a900d16492d3ed6..495b947860fe76af1737d1caf142528be75d5f82 100644
--- a/base/ocsp/shared/webapps/ocsp/agent/header.template
+++ b/base/ocsp/shared/webapps/ocsp/agent/header.template
@@ -83,7 +83,7 @@ $(function() {
 		} else {
           		document.write('<a href="../' + 
 				result.recordSet[i].id + 
-				'/index.html" target="_top">' + 
+				'/" target="_top">' + 
 				type + '<\/a>');
 		}
 		document.write('<\/font><\/td>');
diff --git a/base/ocsp/shared/webapps/ocsp/agent/index.html b/base/ocsp/shared/webapps/ocsp/agent/index.jsp
similarity index 100%
rename from base/ocsp/shared/webapps/ocsp/agent/index.html
rename to base/ocsp/shared/webapps/ocsp/agent/index.jsp
diff --git a/base/ocsp/shared/webapps/ocsp/agent/index.template b/base/ocsp/shared/webapps/ocsp/agent/index.template
index c3afe19286e20a5006fa51f27122be225220c28a..0dddd0444df74901e69009c4a78efb80cec6856a 100644
--- a/base/ocsp/shared/webapps/ocsp/agent/index.template
+++ b/base/ocsp/shared/webapps/ocsp/agent/index.template
@@ -110,7 +110,7 @@ if (result.header.errorDetails != null) {
           	document.write('<td>');
 		document.write('<font face="PrimaSans BT, Verdana, sans-serif">');
 		document.write('<a href="');
-		document.write(result.recordSet[i].id + '/index.html');
+		document.write(result.recordSet[i].id + '/');
 		if (result.recordSet[i].type == "RegistrationAuthority") {
 			document.write('">Registration Manager Agent Services</a></font>');
 			document.write('<font size="-1" face="PrimaSans BT, Verdana, sans-serif"><br>');
diff --git a/base/ocsp/shared/webapps/ocsp/agent/ocsp/index.html b/base/ocsp/shared/webapps/ocsp/agent/ocsp/index.jsp
similarity index 100%
rename from base/ocsp/shared/webapps/ocsp/agent/ocsp/index.html
rename to base/ocsp/shared/webapps/ocsp/agent/ocsp/index.jsp
diff --git a/base/ocsp/shared/webapps/ocsp/index.html b/base/ocsp/shared/webapps/ocsp/index.jsp
similarity index 100%
rename from base/ocsp/shared/webapps/ocsp/index.html
rename to base/ocsp/shared/webapps/ocsp/index.jsp
-- 
2.5.5

