Upgrade Vulnerable Direct Dependencies [log4j] 17/109617/5
authoramohamad <a.mohamad@queensu.ca>
Fri, 26 Jun 2020 16:40:11 +0000 (12:40 -0400)
committeramohamad <a.mohamad@queensu.ca>
Wed, 29 Jul 2020 19:47:42 +0000 (15:47 -0400)
commit9ee60949d3ceca3ab1fcf47c9214f7bf6baf89c6
tree67bf3fbecf8b3bbd4beaccc1378e3914c5c51ed2
parent3c54913a795813ead9dd8a50f22a846ad10ee415
Upgrade Vulnerable Direct Dependencies [log4j]

Signed-off-by: amohamad <a.mohamad@queensu.ca>
Issue-ID: SDC-3051

Upgrade from the  vulnerable log4j 1.x to log4j 2.13.1

Add a log4j version property in  sdc-main pom.xml

Add two maven dependencies to respective child pom.xml

Change name of log4j .properties and .xml config files
to reflect log4j2 naming

Update the configuration files to the totally new
log4j 2 config syntax

Replace PropertyConfigurator with LoggerContext

Remove the abandoned log4j.lf5.util.ResourceUtils

Signed-off-by: amohamad <a.mohamad@queensu.ca>
Change-Id: Ie0f141eb2e0337ee5b63b61dc1395ccd8040558d
39 files changed:
catalog-dao/src/test/resources/log4j.properties [deleted file]
catalog-dao/src/test/resources/log4j2.properties [new file with mode: 0644]
pom.xml
sdc-os-chef/scripts/docker_run.sh
test-apis-ci/pom.xml
test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/conf/log4j.properties [deleted file]
test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/conf/log4j2.properties [new file with mode: 0644]
test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/startTest.sh
test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/api/ComponentBaseTest.java
test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/execute/lifecycle/LCSbaseTest.java
test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/execute/product/ProductTestBase.java
test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/preRequisites/DownloadArtifactBaseTest.java
test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/preRequisites/SimpleOneRsrcOneServiceTest.java
test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/run/StartTest.java
test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/run/StartTest2backup.java
test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/utils/Utils.java
test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/utils/rest/ResponseParser.java
test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/utils/validation/AuditValidationUtils.java
test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/utils/validation/ProductValidationUtils.java
test-apis-ci/src/main/resources/ci/conf/log4j.properties [deleted file]
test-apis-ci/src/main/resources/ci/conf/log4j.xml [deleted file]
test-apis-ci/src/main/resources/ci/conf/log4j2.properties [new file with mode: 0644]
test-apis-ci/src/main/resources/ci/conf/log4j2.xml [new file with mode: 0644]
test-apis-ci/src/main/resources/ci/scripts/startTest.sh
test-apis-ci/src/main/resources/log4j.properties [deleted file]
test-apis-ci/src/main/resources/log4j.xml [deleted file]
test-apis-ci/src/main/resources/log4j2.properties [new file with mode: 0644]
test-apis-ci/src/main/resources/log4j2.xml [new file with mode: 0644]
ui-ci/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/conf/log4j.properties [deleted file]
ui-ci/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/conf/log4j2.properties [new file with mode: 0644]
ui-ci/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/startTest.sh
ui-ci/src/main/resources/ci/conf/log4j.properties [deleted file]
ui-ci/src/main/resources/ci/conf/log4j2.properties [new file with mode: 0644]
ui-ci/src/main/resources/ci/scripts/startTest.sh
utils/webseal-simulator/pom.xml
utils/webseal-simulator/sdc-simulator/chef-repo/cookbooks/sdc-simulator/files/default/log4j.properties [deleted file]
utils/webseal-simulator/sdc-simulator/chef-repo/cookbooks/sdc-simulator/files/default/log4j2.properties [new file with mode: 0644]
utils/webseal-simulator/sdc-simulator/chef-repo/cookbooks/sdc-simulator/recipes/SDC_Simulator_3_logback.rb
utils/webseal-simulator/src/main/java/org/openecomp/sdc/webseal/simulator/SdcProxy.java