Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-67

Create/Update Knox Policy fails to save ipAddress passed

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.4.0
    • Component/s: None
    • Labels:
      None

      Description

      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:*** -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}
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vperiasamy Velmurugan Periasamy
                Reporter:
                vperiasamy Velmurugan Periasamy
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: