Fix Sonar bugs 79/120779/1
authorsebdet <sebastien.determe@intl.att.com>
Wed, 21 Apr 2021 14:39:28 +0000 (16:39 +0200)
committersebdet <sebastien.determe@intl.att.com>
Wed, 21 Apr 2021 14:39:28 +0000 (16:39 +0200)
Fix bug introduced in AAF authentication due to changes done to fix Sonar issues

Issue-ID: POLICY-3200
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: I92aae94010cc8275bca5b1fe81bf54ab80f5f267

src/main/java/org/onap/policy/clamp/clds/ClampServlet.java

index eb64438..ccde7cf 100644 (file)
@@ -76,7 +76,7 @@ public class ClampServlet extends CamelHttpTransportServlet {
         WebApplicationContext webAppContext = WebApplicationContextUtils.getWebApplicationContext(getServletContext());
         if (webAppContext != null) {
             String authClassProperty = webAppContext.getEnvironment().getProperty(AUTHENTICATION_CLASS);
-            if (StringUtils.isBlank(authClassProperty)) {
+            if (!StringUtils.isBlank(authClassProperty)) {
                 return Arrays.stream(authClassProperty.split(",")).map(String::trim)
                         .collect(Collectors.toList());
             }