Skip to content

Commit a8a79bc

Browse files
committed
Close issue ESAPI#581. Details of changes follow:
Edited output from $ mvn -U versions:display-dependency-updates with pom.xml from 2.2.1.1 release: [INFO] The following dependencies in Dependencies have newer versions: [INFO] com.github.spotbugs:spotbugs-annotations .............. 4.0.4 -> 4.1.4 <== Updated to 4.1.4 [INFO] commons-fileupload:commons-fileupload ................... 1.3.3 -> 1.4 <== 1.4 causes test to JUnit test to fail. [INFO] commons-io:commons-io ................................... 2.6 -> 2.8.0 <== 2.7 and later requires Java 8. Can't update yet. [INFO] javax.servlet:javax.servlet-api ....................... 3.0.1 -> 4.0.1 <== Do not update. Support for new major # (4.x) of servlet-api may require updates to newer Java Servlet Engines / App Servers and thus newer versions of the JRE. We are trying to support JRE 7 for now (until CVEs force us to upgrate). Hopefully we can support JRE 7 through the EOL of ESAPI 2.x, whenever that may happen. [INFO] org.apache.commons:commons-collections4 ................... 4.2 -> 4.4 <== 4.3 and newer requires Java 8. Can't update yet. [INFO] org.bouncycastle:bcprov-jdk15on ...................... 1.65.01 -> 1.67 <== Test scope. Unchanged. Updating to 1.67 causes NPE. Specifically, get this error running 'mvn site': [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.9.1:site (default-site) on project esapi: failed to get report for org.apache.maven.plugins:maven-javadoc-plugin: Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce (check-java-versions) on project esapi: Execution check-java-versions of goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce failed.: NullPointerException -> [Help 1] [INFO] org.javassist:javassist ....................... 3.25.0-GA -> 3.27.0-GA <== Test scope. Unchanged. This is latest version that supports Java 7. [INFO] org.mockito:mockito-core ............................. 2.28.2 -> 3.6.0 <== Test scope. Unchanged. [INFO] org.openjdk.jmh:jmh-core ................................ 1.23 -> 1.26 <== Test scope. Unchanged. [INFO] org.openjdk.jmh:jmh-generator-annprocess ................ 1.23 -> 1.26 <== Test scope. Unchanged. [INFO] org.powermock:powermock-api-mockito2 .................. 2.0.7 -> 2.0.9 <== Test scope. Unchanged. [INFO] org.powermock:powermock-module-junit4 ................. 2.0.7 -> 2.0.9 <== Test scope. Unchanged. [INFO] org.powermock:powermock-reflect ....................... 2.0.7 -> 2.0.9 <== Test scope. Unchanged. [INFO] org.slf4j:slf4j-api ........................... 1.7.30 -> 2.0.0-alpha1 <== 1.7.30 is latest GA release (as of 11/24/2020). [INFO] xml-apis:xml-apis .................................... 1.4.01 -> 2.0.2 <== False positive. 1.4.01 is actually the latest official release (2011). As per https://mvnrepository.com/artifact/xml-apis/xml-apis, 2.0.0 was from 2005 and was moved to "xml-apis » xml-apis » 1.0.b2" and 2.0.2 was also from 2005 and moved to "xml-apis » xml-apis » 1.0.b2". So it appears it was just a messed up release versioning problem. Edited output from $ mvn -U versions:display-plugin-updates with pom.xml from 2.2.1.1 release: [INFO] The following dependencies in Plugin Dependencies have newer versions: [INFO] org.codehaus.mojo:animal-sniffer-enforcer-rule .......... 1.17 -> 1.19 <== Updated to 1.18. Updating to 1.19 gives lots of errors on 'mvn site'. [INFO] org.codehaus.mojo:extra-enforcer-rules .................... 1.2 -> 1.3 <== Updated to 1.3.
1 parent cf4de09 commit a8a79bc

File tree

1 file changed

+24
-17
lines changed

1 file changed

+24
-17
lines changed

pom.xml

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>org.owasp.esapi</groupId>
55
<artifactId>esapi</artifactId>
6-
<version>2.3.0.0-SNAPSHOT</version>
6+
<version>2.2.2.0-SNAPSHOT</version>
77
<packaging>jar</packaging>
88

99
<distributionManagement>
@@ -134,7 +134,8 @@
134134
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
135135
<version.jmh>1.23</version.jmh>
136136
<version.powermock>2.0.7</version.powermock>
137-
<version.spotbugs>4.0.4</version.spotbugs>
137+
<version.spotbugs>4.1.4</version.spotbugs>
138+
138139
<!-- Upgrading to 3.0.0-M3+ causes this test case error:
139140
org.owasp.esapi.reference.DefaultValidatorInputStringAPITest.getValidInputNullAllowedPassthrough Time elapsed: 2.057 s <<< ERROR!
140141
java.lang.OutOfMemoryError: PermGen space
@@ -238,17 +239,7 @@
238239
<dependency>
239240
<groupId>org.owasp.antisamy</groupId>
240241
<artifactId>antisamy</artifactId>
241-
<version>1.5.10</version>
242-
<exclusions>
243-
<exclusion>
244-
<groupId>xml-apis</groupId>
245-
<artifactId>xml-apis</artifactId>
246-
</exclusion>
247-
<exclusion>
248-
<groupId>xerces</groupId>
249-
<artifactId>xercesImpl</artifactId>
250-
</exclusion>
251-
</exclusions>
242+
<version>1.5.11</version>
252243
</dependency>
253244
<dependency>
254245
<groupId>org.slf4j</groupId>
@@ -295,6 +286,7 @@
295286
<dependency>
296287
<groupId>xerces</groupId>
297288
<artifactId>xercesImpl</artifactId>
289+
<!-- Note: CVE-2020-14338) in xercesImpl:2.12.0 but Apache has not released an update to this library yet to eliminate it. See ESAPI-security-bulletin3.pdf for further details. -->
298290
<version>2.12.0</version>
299291
</dependency>
300292
<dependency>
@@ -327,6 +319,7 @@
327319
<dependency>
328320
<groupId>org.bouncycastle</groupId>
329321
<artifactId>bcprov-jdk15on</artifactId>
322+
<!-- Tried to update this to 1.67 but that resulted in error when running 'mvn site' -->
330323
<version>1.65.01</version>
331324
<scope>test</scope>
332325
</dependency>
@@ -506,16 +499,30 @@
506499
<dependency>
507500
<groupId>org.codehaus.mojo</groupId>
508501
<artifactId>extra-enforcer-rules</artifactId>
509-
<version>1.2</version>
502+
<version>1.3</version>
510503
</dependency>
511504
<dependency>
512505
<groupId>org.codehaus.mojo</groupId>
513506
<artifactId>animal-sniffer-enforcer-rule</artifactId>
514-
<!-- Apparently 1.18+ requires Java 8 to run, so this is the most recent version of this plugin we can use -->
515-
<version>1.17</version>
507+
<!-- Updating to 1.19 causes lots of errors in 'mvn site' so leaving at 1.18 for now. -->
508+
<version>1.18</version>
516509
</dependency>
517510
</dependencies>
518511
<executions>
512+
<execution>
513+
<id>enforce-maven</id>
514+
<goals>
515+
<goal>enforce</goal>
516+
</goals>
517+
<configuration>
518+
<rules>
519+
<requireMavenVersion>
520+
<version>[3.2.5,)</version>
521+
<message>Building ESAPI 2.x now requires Maven 3.2.5 or later.</message>
522+
</requireMavenVersion>
523+
</rules>
524+
</configuration>
525+
</execution>
519526
<execution>
520527
<id>check-java-versions</id>
521528
<phase>compile</phase>
@@ -739,7 +746,7 @@
739746
</configuration>
740747
</plugin>
741748
<plugin>
742-
<!-- Generate /site/apidocs and /site/testapidocs -->
749+
<!-- Generate /site/apidocs and /site/testapidocs -->
743750
<groupId>org.apache.maven.plugins</groupId>
744751
<artifactId>maven-javadoc-plugin</artifactId>
745752
<configuration>

0 commit comments

Comments
 (0)