You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Yijun Wang (Jira)" <ji...@apache.org> on 2020/02/20 23:11:00 UTC
[jira] [Comment Edited] (RANGER-2737) Ranger REST API returns
different infomation when GET user by id and by name
[ https://issues.apache.org/jira/browse/RANGER-2737?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17041352#comment-17041352 ]
Yijun Wang edited comment on RANGER-2737 at 2/20/20 11:10 PM:
--------------------------------------------------------------
The group list is added into the result in this function:
[[https://github.com/apache/ranger/blob/master/security-admin/src/main/java/org/apache/ranger/service/XUserService.java#L209-L215]
But in getXUserByUserName function, it's calling super.populateViewBean(xxUser), which doesn't include the group list.
was (Author: yzw0060):
The group list is added into the result in this function:
[https://github.com/apache/ranger/blob/master/security-admin/src/main/java/org/apache/ranger/service/XUserService.java#L209-L215
But in getXUserByUserName function, it's calling super.populateViewBean(xxUser), which doesn't include the group list.
> Ranger REST API returns different infomation when GET user by id and by name
> ----------------------------------------------------------------------------
>
> Key: RANGER-2737
> URL: https://issues.apache.org/jira/browse/RANGER-2737
> Project: Ranger
> Issue Type: Bug
> Components: Ranger
> Reporter: Yijun Wang
> Priority: Major
>
> [https://github.com/apache/ranger/blob/master/security-admin/src/main/java/org/apache/ranger/rest/XUserREST.java]
> @Path("/users/userName/\{userName}") - return XUserInfo without a group list
> @Path("/users/\{id}") - return XUserInfo with a group list
> If no specific reasons, they should return the same information.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)