You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Velmurugan Periasamy (JIRA)" <ji...@apache.org> on 2014/09/18 06:35:33 UTC

[jira] [Created] (ARGUS-67) Create/Update Knox Policy fails to save ipAddress passed

Velmurugan Periasamy created ARGUS-67:
-----------------------------------------

             Summary: Create/Update Knox Policy fails to save ipAddress passed 
                 Key: ARGUS-67
                 URL: https://issues.apache.org/jira/browse/ARGUS-67
             Project: Argus
          Issue Type: Bug
            Reporter: Velmurugan Periasamy


Create/Update Knox policy calls don't save ipAddress information being passed.

# Create policy
curl -i --header "Accept:application/json" -H "Content-Type: application/json" --user admin:admin -X POST $REST_SERVER/service/public/api/policy -d '{"policyName": "test_knox_api", "description": "", "resourceType": "knox", "topologies": "TP1,TP2", "repositoryType": "knox", "permMapList": [{"userList": ["user1"], "permList": ["allow", "admin"], "ipAddress":"192.168.0.220"}, {"userList": ["user2"], "permList": ["admin"]}], "isEnabled": true, "services": "SN1,SN2", "repositoryName": "knoxdev", "isAuditEnabled": true}'

# Get policy returns the below (ipAddress passed in missing)
{"id":96,"createDate":"2014-09-18T04:22:35Z","updateDate":"2014-09-18T04:22:35Z","owner":"Admin","updatedBy":"Admin","policyName":"test_knox_api","resourceName":"/TP1/SN1,/TP2/SN1,/TP1/SN2,/TP2/SN2","description":"","repositoryName":"knoxdev","repositoryType":"Knox","permMapList":[{"userList":["user2"],"permList":["Admin"]},{"userList":["user1"],"permList":["Allow","Admin"]}],"topologies":"TP1,TP2","services":"SN1,SN2","isEnabled":true,"isAuditEnabled":true,"version":"0.1.0","replacePerm":false}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)