[
https://issues.apache.org/jira/browse/RANGER-4851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17868027#comment-17868027
]
Vishal Bhavsar commented on RANGER-4851:
----------------------------------------
[~madhan]
As per our new changes, when we associate any user say user1 with any group say
group1, so in corresponding audit log we show the "User user1 added to group
group1", However this was not shown before . Now if we edit the same user and
remove the group1, in audit log we show "User user1 removed from group group1".
Hence for consistency thought we should show (user removal from group) log
while user deletion. However this is not critical.
Also we have tested other scenarios for this patch, things are looking good.
> Upon editing an User we are seeing some discrepancy in its Audit Admin logs
> ----------------------------------------------------------------------------
>
> Key: RANGER-4851
> URL: https://issues.apache.org/jira/browse/RANGER-4851
> Project: Ranger
> Issue Type: Bug
> Components: Ranger
> Affects Versions: 2.5.0
> Reporter: Vishal Bhavsar
> Assignee: Dineshkumar Yadav
> Priority: Major
> Attachments:
> 0001-RANGER-4851-UI-Patch-Upon-editing-an-User-we-are-see.patch,
> 0001-RANGER-4851-intermediate-patch.patch, snapshot1.png, snapshot2.png,
> snapshot3.png, snapshot4.png
>
>
> Upon editing an User we are seeing some discrepancy in its Audit Admin logs
> in "ranger-2.5" branch.
> Steps to repro:
> # Create user (eg vbuser1) by entering all the details in user create form
> except Group.
> # Now edit the user and add any group (eg group1) to it and save.
> # In Audit Admin tab we would see 3 corresponding logs entry for the above
> edit operation. Refer snapshot1
> ## One log is of "User profile updated {*}vbuser1{*}" of Audit Type: User
> Profile, upon clicking on it the modal opens which has "User Details: " table
> empty. Refer snapshot2
> ## Second log is of "User updated {*}vbuser1{*}" of Audit Type: Ranger User,
> upon clicking on it the modal opens with below observation. Refer snapshot3
> ### here "User Details: " table shows Password getting updated even when we
> did not edit the password
> ### in "Group: " table we are seeing groups numerical value instead of its
> string name i.e group1.
> ## Third log is of Audit Type: XA Group of Users , upon clicking on it modal
> opens which is blank i.e no detail seen. Refer snapshot4
> Have attached snapshots for reference.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)