[AMBARI-23067] Upgrading commons-collections to 3.2.2 due to security concerns #468
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Per CVE-2015-6420
Per CVE-2017-15708
So that we need to upgrade commons-collections to at least 3.2.2; at the time of this issue being fixed there is more recent versions in
org.apache.commons:commons-collection4(v4.1) but it would require code modification due to package name changesHow was this patch tested?
After updating the affected pom.xml files I've done the following:
1.) Checking Maven's dependency resolution:
2.) I executed
mvn clean testinambari-project,utilityand inambari-server:3.) In addition to this; I replaced the content of
usr/lib/ambari-serverin my vagrant host with the content fromambari-server/target/ambari-server-2.6.0.0.0-dist/usr/lib/ambari-server(where commons-collections appeared with version 3.2.2) and restarted the server; logged in and did some actions (in this case I added HBase in my cluster); there were no any issues.