You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Krishna Chaitanya Muttevi (Jira)" <ji...@apache.org> on 2026/07/10 06:33:00 UTC
[jira] [Commented] (RANGER-5623) UI Inconsistency: Groups tab userlist fails to reflect updated user-group mapping after successful PUT /xusers/groupusers request
[ https://issues.apache.org/jira/browse/RANGER-5623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18095186#comment-18095186 ]
Krishna Chaitanya Muttevi commented on RANGER-5623:
---------------------------------------------------
Corresponding PR has been reviewed and merged. hence marking it RESOLVED.
to master branch:
*commit d980f9f580289870bb5135b756131d6584f64a5c*
to ranger-2.9 branch:
*commit 2b0dac083eb7d7c75773c55174bf82b6c01762d6*
> UI Inconsistency: Groups tab userlist fails to reflect updated user-group mapping after successful PUT /xusers/groupusers request
> ---------------------------------------------------------------------------------------------------------------------------------
>
> Key: RANGER-5623
> URL: https://issues.apache.org/jira/browse/RANGER-5623
> Project: Ranger
> Issue Type: Bug
> Components: Ranger
> Affects Versions: 3.0.0, 2.9.0
> Reporter: Krishna Chaitanya Muttevi
> Priority: Major
> Fix For: 3.0.0, 2.9.0
>
> Attachments: image-2026-06-01-15-18-09-118.png, image-2026-06-01-15-19-37-436.png, image-2026-06-01-15-20-34-944.png, image-2026-06-01-15-21-13-693.png
>
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
> When updating an existing user-group relationship via the {{PUT /service/xusers/groupusers}} API, the backend processes the change successfully. The UI's "Users" tab correctly reflects the updated group association for the user. However, the "Groups" tab fails to update and displays stale data, keeping the user listed under the old group and omitting them from the new group.
> This indicates a localized state management or caching issue specifically within the "Groups" tab component of the web interface.
> h3. *Steps to Reproduce:*
> # *Create a new user-group relation (User 17 to 'opensearch'):*
>
> {{curl -iu admin:***** -X POST 'http://localhost:6080/service/xusers/groupusers' \ -H 'accept: application/json' -H 'Content-Type: application/json' \ -d '
> {"name":"opensearch", "userId": 17}
> ' }}
> _Backend returns 200 OK, creating relation_ {{{}id: 52{}}}{_}.{_}
> # *Update the existing relation to a different group (User 17 to 'ranger'):*
>
> {{curl -iu admin:***** -X PUT 'http://localhost:6080/service/xusers/groupusers' \ -H 'Content-Type: application/json' \ -d '\{"id": 52, "name": "ranger", "userId": 17}'}}
> _Backend returns 200 OK, confirming the update._
> # *Verify backend state via GET:*
>
> {{curl -iu admin:***** -X GET 'http://localhost:6080/service/xusers/groupusers/52'}}
> _Backend correctly returns_
> {"id":52, ... "name":"ranger","userId":17}
> # *Observe the UI behavior:*
> * Navigate to {*}Settings > Users/Groups/Roles{*}.
> * Check the *Users* tab: User 17 is correctly shown under the {{ranger}} group.
> * Check the *Groups* tab: Inspect the user lists for both the {{opensearch}} and {{ranger}} groups.
> h3. *Expected Behavior:*
> Both the "Users" tab and the "Groups" tab should remain synchronized with the backend. In the "Groups" tab, User 17 should be removed from the {{opensearch}} user list and added to the {{ranger}} user list immediately.
> h3. *Actual Behavior:*
> The "Users" tab reflects the correct backend state, but the "Groups" tab does not. The "Groups" tab UI retains stale data, ignoring the {{PUT}} mutation until a hard refresh or application cache invalidation occurs.
> Here the ranger group’s user list not updated:
> !image-2026-06-01-15-18-09-118.png|width=691,height=397!
>
>
> But om’s groupList is updated correctly.
> !image-2026-06-01-15-19-37-436.png|width=700,height=404!
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)