fixed sonar issue in WebSecurityConfigImpl.java 93/64293/1
authorSandeep J <sandeejh@in.ibm.com>
Mon, 3 Sep 2018 14:35:08 +0000 (20:05 +0530)
committerSandeep J <sandeejh@in.ibm.com>
Mon, 3 Sep 2018 14:35:17 +0000 (20:05 +0530)
fixed sonar issue detailed in SO-874

Issue-ID: SO-874
Change-Id: Ie14f5376566642d75123e23764bf6f7869861393
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
adapters/mso-catalog-db-adapter/src/main/java/org/onap/so/adapters/catalogdb/WebSecurityConfigImpl.java

index 144df5f..2eb4858 100644 (file)
@@ -4,6 +4,8 @@
  * ================================================================================
  * Copyright (C) 2017 - 2018 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
+ * Modifications Copyright (C) 2018 IBM.
+ * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
@@ -36,7 +38,7 @@ public class WebSecurityConfigImpl extends WebSecurityConfig {
                http.csrf().disable()
                .authorizeRequests()
                .antMatchers("/manage/health","/manage/info").permitAll()
-               .antMatchers("/**").hasAnyRole(StringUtils.collectionToDelimitedString(getRoles(),",").toString())
+               .antMatchers("/**").hasAnyRole(StringUtils.collectionToDelimitedString(getRoles(),","))
                .and()
                .httpBasic();
        }