Skip to content

Commit

Permalink
[ALS-5053] pen test medium stacktrace error (#85)
Browse files Browse the repository at this point in the history
* [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.
  • Loading branch information
Gcolon021 authored and Luke-Sikina committed Oct 30, 2023
1 parent d84499a commit 0d9f3e4
Show file tree
Hide file tree
Showing 5 changed files with 338 additions and 337 deletions.
10 changes: 3 additions & 7 deletions client-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,17 @@
<groupId>edu.harvard.hms.dbmi.avillach.hpds</groupId>
<version>1.0-SNAPSHOT</version>
</parent>

<groupId>edu.harvard.hms.dbmi.avillach.hpds</groupId>
<artifactId>client-api</artifactId>
<version>1.0-SNAPSHOT</version>

<name>client-api</name>
<!-- FIXME change it to the project's website -->
<url>http://www.example.com</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>

<dependencies>
<dependency>
<groupId>junit</groupId>
Expand All @@ -29,9 +25,9 @@
<scope>test</scope>
</dependency>
</dependencies>

<build>
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
<pluginManagement>
<!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
<plugins>
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
<plugin>
Expand All @@ -45,7 +41,7 @@
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<version>3.11.0</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
Expand Down
1 change: 1 addition & 0 deletions docker/pic-sure-hpds/server.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<Host name="localhost" appBase="/.extract/webapps" unpackWARs="true"
autoDeploy="true">
<Context path="/" reloadable="true" />
<Valve className="org.apache.catalina.valves.ErrorReportValve" showReport="false" showServerInfo="false"/>
</Host>
</Engine>
</Service>
Expand Down
Loading

0 comments on commit 0d9f3e4

Please sign in to comment.