aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKruthi Bhat <krutbhat@att.com>2022-01-27 16:53:34 -0500
committerIkram Ikramullah <ikram@research.att.com>2022-02-07 21:50:03 +0000
commit703613901b1c8d9db5b7e5473b156eeb08e247c3 (patch)
tree22e8d35b118b29ec46ded924df8fa063c3918649
parentd5500a4f8ecd36190b51a5bf488e4cc5edca1fd0 (diff)
Fix for Pentest - Common error message fix for 404 error
Change-Id: I94fe35c8ac758d7887f440248f400a307b29d16d Issue-ID: VID-987 Signed-off-by: krutbhat@att.com
-rw-r--r--epsdk-app-onap/src/main/webapp/WEB-INF/jsp/errorPage.jsp14
-rwxr-xr-xepsdk-app-onap/src/main/webapp/WEB-INF/web.xml4
2 files changed, 18 insertions, 0 deletions
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
index 000000000..98a0baf13
--- /dev/null
+++ b/epsdk-app-onap/src/main/webapp/WEB-INF/jsp/errorPage.jsp
@@ -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
diff --git a/epsdk-app-onap/src/main/webapp/WEB-INF/web.xml b/epsdk-app-onap/src/main/webapp/WEB-INF/web.xml
index 6007fdc22..e90f837d3 100755
--- a/epsdk-app-onap/src/main/webapp/WEB-INF/web.xml
+++ b/epsdk-app-onap/src/main/webapp/WEB-INF/web.xml
@@ -71,4 +71,8 @@
<url-pattern>/app/ui/*</url-pattern>
</filter-mapping>
+ <error-page>
+ <error-code>404</error-code>
+ <location>/vid/epsdk-app-onap/src/main/webapp/WEB-INF/jsp/errorPage.jsp</location>
+ </error-page>
</web-app> \ No newline at end of file