Merge "Remove override of parent aaf version"
authorLiam Fallon <liam.fallon@ericsson.com>
Tue, 18 Sep 2018 19:19:39 +0000 (19:19 +0000)
committerGerrit Code Review <gerrit@onap.org>
Tue, 18 Sep 2018 19:19:39 +0000 (19:19 +0000)
PolicyEngineUtils/pom.xml
PolicyEngineUtils/src/main/java/org/onap/policy/utils/AAFPolicyClientImpl.java

index f4bb5a0..052d637 100644 (file)
@@ -99,7 +99,6 @@
         <dependency>
             <groupId>org.onap.aaf.authz</groupId>
             <artifactId>aaf-cadi-aaf</artifactId>
-            <version>2.1.0</version>
         </dependency>
         <dependency>
             <groupId>com.google.code.gson</groupId>
index 5c46c76..e65ac27 100644 (file)
@@ -190,7 +190,11 @@ public class AAFPolicyClientImpl implements AAFPolicyClient{
             if(aafCon!=null && aafLurPerm !=null){
                 try {
                     aafCon.basicAuth(userName, pass);
-                    AAFPermission perm = new AAFPermission(type, instance, action);
+                    //
+                    // The first parameter is the namespace. At this point we will default
+                    // to null until we are given a namespace to use.
+                    //
+                    AAFPermission perm = new AAFPermission(null, type, instance, action);
                     final Principal p = new UnAuthPrincipal(userName);
                     result = aafLurPerm.fish(p, perm);
                 } catch (CadiException e) {