ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikhil Purbhe (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (RANGER-2373) User creation POST and PUT response not showing groupIdList and groupNameList with expected data
Date Tue, 19 Mar 2019 05:26:00 GMT

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

Nikhil Purbhe reassigned RANGER-2373:
-------------------------------------

    Assignee: Nikhil Purbhe  (was: Pradeep Agrawal)

> 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
>
>
> 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)

Mime
View raw message