You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Anupam Rai (Jira)" <ji...@apache.org> on 2023/04/04 07:16:00 UTC

[jira] [Updated] (RANGER-4171) Updated time is same as created time even user group membership is updated xusers/users/userName

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

Anupam Rai updated RANGER-4171:
-------------------------------
    Description: 
Updated time is same as created time even user group membership is updated when queried from 'xusers/users/userName'

Steps to reproduce :
1. Create user through freeIPA or any other source and associate it with group1 wait for user to sync in Ranger
2. Create new group on usersync Active node name as group2
3. Associate create user with created group on usersync Active node.

Verify user on xusers/users/userName
Request :
{code:java}
curl -s -L "https://***/xusers/users/userName/tester1234" -H "Authorization: Basic ******==" {code}
response :
{code:java}
{
    "id": 209,
    "createDate": "2023-04-03T06:40:15Z",
    "updateDate": "2023-04-03T06:40:15Z",
    "owner": "**",
    "updatedBy": "***",
    "name": "**",
    "password": "*****",
    "description": "tester1234 - add from Unix box",
    "groupIdList": [
        279,
        278
    ],
    "groupNameList": [
        "testanu",
        "tester1234"
    ],
    "status": 1,
    "isVisible": 1,
    "userSource": 1,
    "userRoleList": [
        "ROLE_USER"
    ],
    "otherAttributes": "{\"sync_source\":\"Unix\",\"full_name\":\"tester1234\",\"original_name\":\"tester1234\"}",
    "syncSource": "Unix"
} {code}

  was:
Updated time is same as created time even user group membership is updated when queried from 'xusers/users/userName'

Steps to reproduce :
1. Create user through freeIPA or any other source and associate it with group1 wait for user to sync in Ranger
2. Create new group on usersync Active node name as group2
3. Associate create user with created group on usersync Active node.

Verify user on xusers/users/userName
Request :
{code:java}
curl -s -L "https://***/xusers/users/userName/tester1234" -H "Authorization: Basic aHJ0X3FhOlBhc3N3b3JkQDEyMw==" {code}
response :
{code:java}
{
    "id": 209,
    "createDate": "2023-04-03T06:40:15Z",
    "updateDate": "2023-04-03T06:40:15Z",
    "owner": "**",
    "updatedBy": "***",
    "name": "**",
    "password": "*****",
    "description": "tester1234 - add from Unix box",
    "groupIdList": [
        279,
        278
    ],
    "groupNameList": [
        "testanu",
        "tester1234"
    ],
    "status": 1,
    "isVisible": 1,
    "userSource": 1,
    "userRoleList": [
        "ROLE_USER"
    ],
    "otherAttributes": "{\"sync_source\":\"Unix\",\"full_name\":\"tester1234\",\"original_name\":\"tester1234\"}",
    "syncSource": "Unix"
} {code}


> Updated time is same as created time even user group membership is updated xusers/users/userName
> ------------------------------------------------------------------------------------------------
>
>                 Key: RANGER-4171
>                 URL: https://issues.apache.org/jira/browse/RANGER-4171
>             Project: Ranger
>          Issue Type: Bug
>          Components: Ranger, usersync
>            Reporter: Anupam Rai
>            Priority: Major
>
> Updated time is same as created time even user group membership is updated when queried from 'xusers/users/userName'
> Steps to reproduce :
> 1. Create user through freeIPA or any other source and associate it with group1 wait for user to sync in Ranger
> 2. Create new group on usersync Active node name as group2
> 3. Associate create user with created group on usersync Active node.
> Verify user on xusers/users/userName
> Request :
> {code:java}
> curl -s -L "https://***/xusers/users/userName/tester1234" -H "Authorization: Basic ******==" {code}
> response :
> {code:java}
> {
>     "id": 209,
>     "createDate": "2023-04-03T06:40:15Z",
>     "updateDate": "2023-04-03T06:40:15Z",
>     "owner": "**",
>     "updatedBy": "***",
>     "name": "**",
>     "password": "*****",
>     "description": "tester1234 - add from Unix box",
>     "groupIdList": [
>         279,
>         278
>     ],
>     "groupNameList": [
>         "testanu",
>         "tester1234"
>     ],
>     "status": 1,
>     "isVisible": 1,
>     "userSource": 1,
>     "userRoleList": [
>         "ROLE_USER"
>     ],
>     "otherAttributes": "{\"sync_source\":\"Unix\",\"full_name\":\"tester1234\",\"original_name\":\"tester1234\"}",
>     "syncSource": "Unix"
> } {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)