diff options
author | 2018-01-19 08:24:26 +0000 | |
---|---|---|
committer | 2018-01-19 08:37:32 +0000 | |
commit | dd6a7438d0b312c6cea18bf44ca2f86e55b5b943 (patch) | |
tree | e447d33ce87ff1172948ae0dc140a66bd1e8d41f /sdclient/discovery-service/src/main/java | |
parent | b767a32b7f3a238c890c7c8c9ae50fcbe74f5307 (diff) |
Fix Nexus IQ security issue
Update dependencies to latest versions.
Issue-ID: MSB-131
Change-Id: I3659a189b3b7b898970ae6efe8bb8e6a61804046
Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
Diffstat (limited to 'sdclient/discovery-service/src/main/java')
-rw-r--r-- | sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/wrapper/consul/Consul.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/wrapper/consul/Consul.java b/sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/wrapper/consul/Consul.java index 51b6449..a8851fc 100644 --- a/sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/wrapper/consul/Consul.java +++ b/sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/wrapper/consul/Consul.java @@ -66,6 +66,8 @@ public class Consul { public boolean apply(final Class<?> clazz) { return JacksonJaxbJsonProvider.class.isAssignableFrom(clazz); } + + }).first().isPresent()) { builder.register(JacksonJaxbJsonProvider.class); } @@ -197,7 +199,7 @@ public class Consul { */ public Builder withHostAndPort(HostAndPort hostAndPort) { try { - this.url = new URL("http", hostAndPort.getHostText(), hostAndPort.getPort(), ""); + this.url = new URL("http", hostAndPort.getHost(), hostAndPort.getPort(), ""); } catch (MalformedURLException e) { throw new RuntimeException(e); } |