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/10/24 17:16:33 UTC

[jira] [Updated] (ARGUS-123) Update policy REST API call not updating permissions properly for Storm policy

     [ https://issues.apache.org/jira/browse/ARGUS-123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Velmurugan Periasamy updated ARGUS-123:
---------------------------------------
    Fix Version/s: 0.4.0

> Update policy REST API call not updating permissions properly for Storm policy
> ------------------------------------------------------------------------------
>
>                 Key: ARGUS-123
>                 URL: https://issues.apache.org/jira/browse/ARGUS-123
>             Project: Argus
>          Issue Type: Bug
>            Reporter: Velmurugan Periasamy
>            Assignee: Velmurugan Periasamy
>             Fix For: 0.4.0
>
>
> *Steps to reproduce*
> 1] Get a specific storm policy using GET POLICY REST API
> {noformat}
> curl -i --header Accept:application/json -H Content-Type: application/json --user admin:***** -X GET http://ec2-54-172-58-154.compute-1.amazonaws.com:6080/service/public/api/policy/137
> {noformat}
> 2] Use the JSON output as input to UPDATE POLICY REST API
> {noformat}
> curl -i --header Accept:application/json -H Content-Type: application/json --user admin:***** -X PUT http://ec2-54-172-58-154.compute-1.amazonaws.com:6080/service/public/api/policy/137 -d {"id":137,"createDate":"2014-10-20T21:59:02Z","updateDate":"2014-10-21T02:35:21Z","owner":"Admin","updatedBy":"Admin","policyName":"Storm_Policy_02","resourceName":"/wctest,/*","description":"","repositoryName":"stormdev","repositoryType":"Storm","permMapList":[{"groupList":["stormtestuser","public"],"permList":["Admin","submitTopology","fileUpload","getNimbusConf","getClusterInfo","fileDownload","killTopology","rebalance","activate","deactivate","getTopologyConf","getTopology","getUserTopology","getTopologyInfo","uploadNewCredentials"]}],"topologies":"wctest,*","isEnabled":true,"isAuditEnabled":true,"version":"0.4.0","replacePerm":false}
> {noformat}
> *Expected behavior*
> Update REST API call should update the permissions properly.
> *Actual behavior*
> After the update call, permissions in policy get lost and only three are remaining.



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