[
https://issues.apache.org/jira/browse/RANGER-4851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17866414#comment-17866414
]
Dineshkumar Yadav commented on RANGER-4851:
-------------------------------------------
Hi [~madhan] I am attaching intermediate patch which handles below use case
mentioned by [~vishalbhavsar]
* If a User does not have any group assigned and we edit its role then we are
not getting it corresponding Admin log in UI.
* If a User has any group assigned to it and if we try to edit the role for
that user we are getting "Page not found (404)".
* *Comment from description *
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.
*Pending to handle*
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
On above scenario when we edit user and add any Group to it. ---> it creates
separate transaction log for group user(CLASS_TYPE_XA_GROUP_USER = 1004) and
currently does not have any association with user update (CLASS_TYPE_XA_USER =
1003).
This need some kind of association with it's parent transaction in this case it
is User update operation.
can you please suggest how to handle this?
CC [~rakeshgupta264],[~vishalbhavsar]
> 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-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)