You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Nikhil Purbhe (JIRA)" <ji...@apache.org> on 2019/03/26 05:59:00 UTC

[jira] [Updated] (RANGER-2373) User creation POST and PUT response not showing groupIdList and groupNameList with expected data

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

Nikhil Purbhe updated RANGER-2373:
----------------------------------
    Attachment: RANGER-2373-2.patch

> User creation POST and PUT response not showing groupIdList and groupNameList with expected data
> ------------------------------------------------------------------------------------------------
>
>                 Key: RANGER-2373
>                 URL: https://issues.apache.org/jira/browse/RANGER-2373
>             Project: Ranger
>          Issue Type: Bug
>          Components: Ranger
>    Affects Versions: 1.0.0, 1.1.0, 2.0.0, 1.2.0
>            Reporter: Pradeep Agrawal
>            Assignee: Nikhil Purbhe
>            Priority: Major
>             Fix For: 2.0.0
>
>         Attachments: RANGER-2373-2.patch
>
>
> Used below POST data for user creation using request url - /service/xusers/secure/users
> {noformat}
> {
>  "name": "testuser01",
>  "password": "testuser01",
>  "firstName": "testuser01",
>  "lastName": "",
>  "emailAddress": "",
>  "userRoleList": ["ROLE_USER"],
>  "groupIdList": [2],
>  "status": 1
> }
> {noformat}
> POST repsonse is,
> {code}
> {"id":20,"createDate":"2018-10-11T13:03:54Z","updateDate":"2018-10-11T13:03:54Z","owner":"Admin","updatedBy":"Admin","name":"testuser01","firstName":"testuser01","lastName":"","password":"*****","description":"testuser01","groupIdList":[],"groupNameList":[],"status":1,"isVisible":1,"userSource":0,"userRoleList":["ROLE_USER"]}
> {code}
> For updating, the user used below PUT data
> {noformat}
> {
> "name": "testuser01",
> "firstName": "testuser01",
> "lastName": "",
> "emailAddress": "",
> "userRoleList": ["ROLE_USER"],
> "groupIdList": [2, 9],
> "groupNameList": ["hadoop", "mapred"],
> "status": 1,
> "description": "testuser01",
> "isVisible": 1,
> "userSource": 0,
> "id":20,
> "owner": "Admin"
> }
> {noformat}
> PUT response
> {code}
> {"id":20,"createDate":"2018-10-11T13:03:54Z","updateDate":"2018-10-11T14:09:34Z","owner":"Admin","updatedBy":"Admin","name":"testuser01","firstName":"testuser01","lastName":"","password":"*****","description":"testuser01","groupIdList":[2,9],"groupNameList":["hadoop"],"status":1,"isVisible":1,"userSource":0,"userRoleList":["ROLE_USER"]}
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)