From ff86f98e38f3df388ff3dfa3b3bd995707d05b9b Mon Sep 17 00:00:00 2001 From: liamfallon Date: Sun, 21 Jun 2020 21:52:55 +0100 Subject: Remove apex-pdp Jackson security issue We should use the managed version of jackson from policy-parent rather than a specific apex-pdp version. Also upgrade the version of Avro, avro 1.9.2 uses a newer somewhat more secure version of Jackson. Issue-ID: POLICY-1508 Change-Id: If32218816ae76cf3cf6ddc8980e3a37e7e2ffd19 Signed-off-by: liamfallon --- .../messaging/impl/ws/client/MessagingClient.java | 2 +- .../plugins-context-schema-avro/pom.xml | 9 +++++---- pom.xml | 15 ++------------- tools/tools-common/pom.xml | 1 - 4 files changed, 8 insertions(+), 19 deletions(-) diff --git a/core/core-infrastructure/src/main/java/org/onap/policy/apex/core/infrastructure/messaging/impl/ws/client/MessagingClient.java b/core/core-infrastructure/src/main/java/org/onap/policy/apex/core/infrastructure/messaging/impl/ws/client/MessagingClient.java index 5d45c473b..0615837af 100644 --- a/core/core-infrastructure/src/main/java/org/onap/policy/apex/core/infrastructure/messaging/impl/ws/client/MessagingClient.java +++ b/core/core-infrastructure/src/main/java/org/onap/policy/apex/core/infrastructure/messaging/impl/ws/client/MessagingClient.java @@ -1,6 +1,7 @@ /*- * ============LICENSE_START======================================================= * Copyright (C) 2016-2018 Ericsson. All rights reserved. + * Modifications Copyright (C) 2020 Nordix Foundation. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -103,7 +104,6 @@ public class MessagingClient extends InternalMessageBusClient implements M do { switch (connection.getReadyState()) { case NOT_YET_CONNECTED: - case CONNECTING: case CLOSING: // Not connected yet so wait for the try interval ThreadUtilities.sleep(CONNECTION_TRY_INTERVAL_MS); diff --git a/plugins/plugins-context/plugins-context-schema/plugins-context-schema-avro/pom.xml b/plugins/plugins-context/plugins-context-schema/plugins-context-schema-avro/pom.xml index e1a6aac5f..775b620a6 100644 --- a/plugins/plugins-context/plugins-context-schema/plugins-context-schema-avro/pom.xml +++ b/plugins/plugins-context/plugins-context-schema/plugins-context-schema-avro/pom.xml @@ -1,19 +1,20 @@ @@ -33,7 +34,7 @@ org.apache.avro avro - 1.9.0 + 1.9.2 org.apache.commons diff --git a/pom.xml b/pom.xml index 3f2e4d7f0..bb5e5afa0 100644 --- a/pom.xml +++ b/pom.xml @@ -45,9 +45,8 @@ 1.4 2.3.0 5.3.7.Final - 1.6.5 - 2.2.6 - 2.10.0.pr3 + 1.7.0-SNAPSHOT + 2.3.0-SNAPSHOT 4.1.5.Final 20041127.091804 2.8.0 @@ -111,16 +110,6 @@ policy-endpoints ${version.policy.common} - - com.fasterxml.jackson.core - jackson-core - ${version.jackson} - - - com.fasterxml.jackson.core - jackson-databind - ${version.jackson} - org.jgroups jgroups diff --git a/tools/tools-common/pom.xml b/tools/tools-common/pom.xml index d664d4cfb..5ebef421e 100644 --- a/tools/tools-common/pom.xml +++ b/tools/tools-common/pom.xml @@ -37,7 +37,6 @@ org.apache.commons commons-lang3 - 3.6 org.apache.commons -- cgit 1.2.3-korg