Fix for Pentest - Common error message fix for 404 error 40/126840/2
authorKruthi Bhat <krutbhat@att.com>
Thu, 27 Jan 2022 21:53:34 +0000 (16:53 -0500)
committerIkram Ikramullah <ikram@research.att.com>
Mon, 7 Feb 2022 21:50:03 +0000 (21:50 +0000)
Change-Id: I94fe35c8ac758d7887f440248f400a307b29d16d
Issue-ID: VID-987
Signed-off-by: krutbhat@att.com
epsdk-app-onap/src/main/webapp/WEB-INF/jsp/errorPage.jsp [new file with mode: 0644]
epsdk-app-onap/src/main/webapp/WEB-INF/web.xml

diff --git a/epsdk-app-onap/src/main/webapp/WEB-INF/jsp/errorPage.jsp b/epsdk-app-onap/src/main/webapp/WEB-INF/jsp/errorPage.jsp
new file mode 100644 (file)
index 0000000..98a0baf
--- /dev/null
@@ -0,0 +1,14 @@
+<!doctype html>
+<title>Something went wrong!</title>
+
+
+<html>
+<head>
+    <meta http-equiv="Content-Type" content="text/html;">
+    <title>Error Page</title>
+</head>
+<body>
+<h1>Something went wrong. Please go back to the previous page or
+    try again later.</h1>
+</body>
+</html>
\ No newline at end of file
index 6007fdc..e90f837 100755 (executable)
@@ -71,4 +71,8 @@
     <url-pattern>/app/ui/*</url-pattern>\r
   </filter-mapping>\r
 \r
+  <error-page>\r
+    <error-code>404</error-code>\r
+    <location>/vid/epsdk-app-onap/src/main/webapp/WEB-INF/jsp/errorPage.jsp</location>\r
+  </error-page>\r
 </web-app>
\ No newline at end of file