From 5f2bb71efa058b6b12048edf1c7d450a9a6172a1 Mon Sep 17 00:00:00 2001
From: Gcolon021 <34667267+Gcolon021@users.noreply.github.com>
Date: Fri, 13 Oct 2023 14:22:08 -0400
Subject: [PATCH] [ALS-5053] pen test medium stacktrace error (#85)
* [ALS-5000] Update maven compiler plugin
Maven compiler plugin has a dependency on log4j.
* [ALS-5053] Add error pages to web.xml
* [ALS-5053] Add value to server.xml
This value will intercept request processed by tomcat. I have disabled reports and show server information. This information should not be returned to the client.
(cherry picked from commit 0d9f3e428f8bce093c374caaaa9d4d07e37ee1f5)
---
client-api/pom.xml | 9 +++------
docker/pic-sure-hpds/server.xml | 1 +
pom.xml | 18 +++++++++---------
war/pom.xml | 2 +-
war/src/main/webapp/WEB-INF/web.xml | 8 ++++++++
5 files changed, 22 insertions(+), 16 deletions(-)
diff --git a/client-api/pom.xml b/client-api/pom.xml
index bd533e67..d74b2aba 100644
--- a/client-api/pom.xml
+++ b/client-api/pom.xml
@@ -6,7 +6,6 @@
edu.harvard.hms.dbmi.avillach.hpds
3.0.0-SNAPSHOT
-
edu.harvard.hms.dbmi.avillach.hpds
client-api
3.0.0-SNAPSHOT
@@ -14,17 +13,15 @@
client-api
http://www.example.com
-
UTF-8
-
-
-
+
+
@@ -38,7 +35,7 @@
maven-compiler-plugin
- 3.8.0
+ 3.11.0
maven-surefire-plugin
diff --git a/docker/pic-sure-hpds/server.xml b/docker/pic-sure-hpds/server.xml
index ebf2760b..8b835346 100644
--- a/docker/pic-sure-hpds/server.xml
+++ b/docker/pic-sure-hpds/server.xml
@@ -27,6 +27,7 @@
+
diff --git a/pom.xml b/pom.xml
index d98bf383..917fc150 100644
--- a/pom.xml
+++ b/pom.xml
@@ -337,13 +337,13 @@
-
-
-
-
- github
- GitHub HMS-DBMI Apache Maven Packages
- https://maven.pkg.github.com/hms-dbmi/pic-sure-hpds
-
-
+
+
+
+
+ github
+ GitHub HMS-DBMI Apache Maven Packages
+ https://maven.pkg.github.com/hms-dbmi/pic-sure-hpds
+
+
\ No newline at end of file
diff --git a/war/pom.xml b/war/pom.xml
index deda5e51..a022339f 100644
--- a/war/pom.xml
+++ b/war/pom.xml
@@ -26,7 +26,7 @@
9
- 3.8.0
+ 3.11.0
org.apache.maven.plugins
diff --git a/war/src/main/webapp/WEB-INF/web.xml b/war/src/main/webapp/WEB-INF/web.xml
index 967fae1e..e2b7de9f 100644
--- a/war/src/main/webapp/WEB-INF/web.xml
+++ b/war/src/main/webapp/WEB-INF/web.xml
@@ -32,4 +32,12 @@
true
+
+ 404
+ /error-404.html
+
+
+ 500
+ /error-500.html
+