From 51710092beee572f3b857c0f17a86736b0a9bdfd Mon Sep 17 00:00:00 2001 From: Remigiusz Janeczek Date: Wed, 10 Feb 2021 12:40:12 +0100 Subject: Remove security vulnerabilities in runtime-api Update springfox dependencies to 3.0.0 Add changelog Issue-ID: DCAEGEN2-2595 Signed-off-by: Remigiusz Janeczek Change-Id: I1c7df7c5e5ad250f532ae07904cb16f4e1114063 --- mod/runtimeapi/Changelog.md | 10 ++++++++++ mod/runtimeapi/pom.xml | 13 ++++++++++++- mod/runtimeapi/runtime-core/pom.xml | 4 ++-- mod/runtimeapi/runtime-web/pom.xml | 12 ++++++------ .../org/onap/dcae/runtime/web/RuntimeapiApplication.java | 2 -- .../runtime/web/controllers/TestFlowGraphController.java | 2 +- 6 files changed, 31 insertions(+), 12 deletions(-) create mode 100644 mod/runtimeapi/Changelog.md diff --git a/mod/runtimeapi/Changelog.md b/mod/runtimeapi/Changelog.md new file mode 100644 index 0000000..526159d --- /dev/null +++ b/mod/runtimeapi/Changelog.md @@ -0,0 +1,10 @@ +# Change Log + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](http://keepachangelog.com/) +and this project adheres to [Semantic Versioning](http://semver.org/). + +## [1.2.2] +- Update SpringFox dependencies to version 3.0.0 + - Swagger documentation URL changed from: /swagger-ui.html to: /swagger-ui/index.html diff --git a/mod/runtimeapi/pom.xml b/mod/runtimeapi/pom.xml index f3d72da..77d73b9 100644 --- a/mod/runtimeapi/pom.xml +++ b/mod/runtimeapi/pom.xml @@ -34,7 +34,7 @@ limitations under the License. org.onap.dcaegen2.platform.mod runtimeapi - 1.2.1 + 1.2.2 dcaegen2-platform-mod-runtimeapi MOD Runtime API @@ -108,6 +108,17 @@ limitations under the License. 2.1.7.RELEASE pom import + + + org.springframework.plugin + spring-plugin-core + + + + + org.springframework.plugin + spring-plugin-core + 2.0.0.RELEASE diff --git a/mod/runtimeapi/runtime-core/pom.xml b/mod/runtimeapi/runtime-core/pom.xml index 9310bd3..a1b05e6 100644 --- a/mod/runtimeapi/runtime-core/pom.xml +++ b/mod/runtimeapi/runtime-core/pom.xml @@ -25,12 +25,12 @@ limitations under the License. runtimeapi org.onap.dcaegen2.platform.mod - 1.2.1 + 1.2.2 4.0.0 runtime-core - 1.2.1 + 1.2.2 diff --git a/mod/runtimeapi/runtime-web/pom.xml b/mod/runtimeapi/runtime-web/pom.xml index 44a1fd4..f33cee1 100644 --- a/mod/runtimeapi/runtime-web/pom.xml +++ b/mod/runtimeapi/runtime-web/pom.xml @@ -24,10 +24,10 @@ limitations under the License. org.onap.dcaegen2.platform.mod runtimeapi - 1.2.1 + 1.2.2 runtime-web - 1.2.1-SNAPSHOT + 1.2.2-SNAPSHOT jar runtime-web MOD Runtime Web Module @@ -35,7 +35,7 @@ limitations under the License. org.onap.dcaegen2.platform.mod runtime-core - 1.2.1 + 1.2.2 org.springframework.boot @@ -65,13 +65,13 @@ limitations under the License. io.springfox - springfox-swagger2 - 2.10.5 + springfox-boot-starter + 3.0.0 io.springfox springfox-swagger-ui - 2.10.5 + 3.0.0 org.json diff --git a/mod/runtimeapi/runtime-web/src/main/java/org/onap/dcae/runtime/web/RuntimeapiApplication.java b/mod/runtimeapi/runtime-web/src/main/java/org/onap/dcae/runtime/web/RuntimeapiApplication.java index 611b332..df79251 100644 --- a/mod/runtimeapi/runtime-web/src/main/java/org/onap/dcae/runtime/web/RuntimeapiApplication.java +++ b/mod/runtimeapi/runtime-web/src/main/java/org/onap/dcae/runtime/web/RuntimeapiApplication.java @@ -19,10 +19,8 @@ package org.onap.dcae.runtime.web; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc; @SpringBootApplication -@EnableSwagger2WebMvc public class RuntimeapiApplication { public static void main(String[] args) { diff --git a/mod/runtimeapi/runtime-web/src/test/java/org/onap/dcae/runtime/web/controllers/TestFlowGraphController.java b/mod/runtimeapi/runtime-web/src/test/java/org/onap/dcae/runtime/web/controllers/TestFlowGraphController.java index 60ff810..942d2fd 100644 --- a/mod/runtimeapi/runtime-web/src/test/java/org/onap/dcae/runtime/web/controllers/TestFlowGraphController.java +++ b/mod/runtimeapi/runtime-web/src/test/java/org/onap/dcae/runtime/web/controllers/TestFlowGraphController.java @@ -81,7 +81,7 @@ public class TestFlowGraphController { @Test public void testSwaggerUi() throws Exception { - mockMvc.perform(get("/swagger-ui.html")) + mockMvc.perform(get("/swagger-ui/index.html")) .andExpect(status().isOk()); } -- cgit 1.2.3-korg