summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRehanRaza <muhammad.rehan.raza@est.tech>2021-01-29 13:26:00 +0100
committerRehanRaza <muhammad.rehan.raza@est.tech>2021-01-29 17:57:07 +0100
commitb369f78cc4c558b94d1192f8774ce5bb044f2cf0 (patch)
treee3e55e82873325b3527ba12ae2abf8959893da0d
parent81a18aa2833064448a66013b8842dbfffc73c056 (diff)
Upgrade springfox version to fix security issues
Change-Id: I71b340cb63f3ea6f8814638517ad4482ed30c662 Issue-ID: CCSDK-3108 Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
-rw-r--r--a1-policy-management/pom.xml2
-rw-r--r--a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/SwaggerConfig.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/a1-policy-management/pom.xml b/a1-policy-management/pom.xml
index cdb1bdbd..d1f74dd8 100644
--- a/a1-policy-management/pom.xml
+++ b/a1-policy-management/pom.xml
@@ -35,7 +35,7 @@
<properties>
<java.version.source>11</java.version.source>
<java.version.target>11</java.version.target>
- <springfox.version>2.9.2</springfox.version>
+ <springfox.version>3.0.0</springfox.version>
<!-- Do not change to version 3.0.0! Will break the generated json. -->
<immutable.version>2.8.8</immutable.version>
<sdk.version>1.1.6</sdk.version>
diff --git a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/SwaggerConfig.java b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/SwaggerConfig.java
index 61c03ba8..1197cc35 100644
--- a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/SwaggerConfig.java
+++ b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/SwaggerConfig.java
@@ -82,9 +82,9 @@ public class SwaggerConfig extends WebMvcConfigurationSupport {
.select() //
.apis(RequestHandlerSelectors.any()) //
.paths(PathSelectors.any()) //
- .paths(Predicates.not(PathSelectors.regex("/error"))) //
+ .paths(PathSelectors.regex("/error").negate()) //
// this endpoint is not implemented, but was visible for Swagger
- .paths(Predicates.not(PathSelectors.regex("/actuator.*"))) //
+ .paths(PathSelectors.regex("/actuator.*").negate()) //
// this endpoint is implemented by spring framework, exclude for now
.build();
}