aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorvasraz <vasyl.razinkov@est.tech>2021-01-20 21:20:28 +0000
committerChristophe Closset <christophe.closset@intl.att.com>2021-01-22 08:16:23 +0000
commit7c2593303b78cf8df66134d60af7a0efc54e4f13 (patch)
treebdb7bb483488b58974af5444769fb643a897f833 /utils
parent32111c9725557d556a73929898264b4b338bb3d6 (diff)
Remove vulnerable log4j dependency
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Issue-ID: SDC-3310 Change-Id: I1c31ab30efa7a3d03a08f512024a3967ce024237
Diffstat (limited to 'utils')
-rw-r--r--utils/webseal-simulator/pom.xml9
-rw-r--r--utils/webseal-simulator/src/main/java/org/openecomp/sdc/webseal/simulator/SdcProxy.java7
2 files changed, 6 insertions, 10 deletions
diff --git a/utils/webseal-simulator/pom.xml b/utils/webseal-simulator/pom.xml
index 7616ebd78a..c3e1877882 100644
--- a/utils/webseal-simulator/pom.xml
+++ b/utils/webseal-simulator/pom.xml
@@ -76,15 +76,12 @@
<version>1.0.2</version>
<scope>compile</scope>
</dependency>
-
<dependency>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-core</artifactId>
- <version>${log4j.version}</version>
- <scope>compile</scope>
+ <groupId>org.openecomp.sdc</groupId>
+ <artifactId>openecomp-sdc-logging-api</artifactId>
+ <version>${project.version}</version>
</dependency>
-
</dependencies>
<build>
<finalName>WSSimulator-${project.version}</finalName>
diff --git a/utils/webseal-simulator/src/main/java/org/openecomp/sdc/webseal/simulator/SdcProxy.java b/utils/webseal-simulator/src/main/java/org/openecomp/sdc/webseal/simulator/SdcProxy.java
index 014b6c4031..ea4203dcc1 100644
--- a/utils/webseal-simulator/src/main/java/org/openecomp/sdc/webseal/simulator/SdcProxy.java
+++ b/utils/webseal-simulator/src/main/java/org/openecomp/sdc/webseal/simulator/SdcProxy.java
@@ -35,8 +35,8 @@ import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
import org.apache.http.ssl.SSLContextBuilder;
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.Logger;
+import org.openecomp.sdc.logging.api.Logger;
+import org.openecomp.sdc.logging.api.LoggerFactory;
import org.openecomp.sdc.webseal.simulator.conf.Conf;
import javax.net.ssl.SSLContext;
@@ -75,8 +75,7 @@ public class SdcProxy extends HttpServlet {
private final String CONFIGURATIONS = "/configurations";
private static final Set<String> RESERVED_HEADERS = Arrays.stream(ReservedHeaders.values()).map(h -> h.getValue()).collect(Collectors.toSet());
-
- private final static Logger logger = LogManager.getLogger(SdcProxy.class);
+ private static final Logger logger = LoggerFactory.getLogger(SdcProxy.class);
public void init(ServletConfig config) throws ServletException {
super.init(config);