summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiam Fallon <liam.fallon@est.tech>2022-03-03 15:43:26 +0000
committerGerrit Code Review <gerrit@onap.org>2022-03-03 15:43:26 +0000
commit1bb84ec45c0c066652d31762fa2f1805175fa611 (patch)
tree2a3b7adb49dffd76153026738f8e7c25d53c1870
parentdb62dd949137d911a7cf928cc92fcaeaf655dbd8 (diff)
parent510ac390315ad3e6f97a86d9475252a717fd20f0 (diff)
Merge "Fix sonar security issues in policy-gui"
-rw-r--r--gui-server/src/main/java/org/onap/policy/gui/server/rest/ApexEditorRestController.java1
-rw-r--r--gui-server/src/main/java/org/onap/policy/gui/server/rest/ClampRestController.java1
2 files changed, 2 insertions, 0 deletions
diff --git a/gui-server/src/main/java/org/onap/policy/gui/server/rest/ApexEditorRestController.java b/gui-server/src/main/java/org/onap/policy/gui/server/rest/ApexEditorRestController.java
index a4b92ef..3d7b49f 100644
--- a/gui-server/src/main/java/org/onap/policy/gui/server/rest/ApexEditorRestController.java
+++ b/gui-server/src/main/java/org/onap/policy/gui/server/rest/ApexEditorRestController.java
@@ -33,6 +33,7 @@ public class ApexEditorRestController {
/**
* Strip /apex-editor prefix from Apex Editor rest calls.
*/
+ @SuppressWarnings("java:S3752") // Suppress warning about RequestMapping without HTTP method.
@RequestMapping("/**")
public ModelAndView forwardApexEditorRest(ModelMap model, HttpServletRequest request) {
String targetUrl = request.getRequestURI().replaceFirst("^/apex-editor", "");
diff --git a/gui-server/src/main/java/org/onap/policy/gui/server/rest/ClampRestController.java b/gui-server/src/main/java/org/onap/policy/gui/server/rest/ClampRestController.java
index 1975f37..b13003c 100644
--- a/gui-server/src/main/java/org/onap/policy/gui/server/rest/ClampRestController.java
+++ b/gui-server/src/main/java/org/onap/policy/gui/server/rest/ClampRestController.java
@@ -51,6 +51,7 @@ public class ClampRestController {
/**
* Proxy rest calls to clamp backend.
*/
+ @SuppressWarnings("java:S3752") // Suppress warning about RequestMapping without HTTP method.
@RequestMapping("/**")
public ResponseEntity<String> mirrorRest(@RequestBody(required = false) String body,
@RequestHeader HttpHeaders headers,