-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/73460/
-----------------------------------------------------------

Review request for ranger, Dhaval Shah, Abhay Kulkarni, Madhan Neethiraj, Mehul 
Parikh, Ramesh Mani, Sailaja Polavarapu, Vishal Suvagia, and Velmurugan 
Periasamy.


Bugs: RANGER-3341
    https://issues.apache.org/jira/browse/RANGER-3341


Repository: ranger


Description
-------

**Problem Statement:** During policy import on maria DB flavor it was observed 
that when policy user is created, return object of XXPortalUser does not have 
the generated unique id of the user, hence null value was assigned. null user 
id can't be used for entries in x_portal_user_role table for the same user. 


**Proposed Solution:** once a XXPortalUser entry is created, a fresh call need 
to made to fetch the same user details and if it has the generated unique id 
then that id can be used for creating the roles of the same user.


Diffs
-----

  security-admin/src/main/java/org/apache/ranger/biz/UserMgr.java 318c4ee0f 


Diff: https://reviews.apache.org/r/73460/diff/1/


Testing
-------

Tested the patch in MariaDB(10.3) and postgres DB(10.15) and issue is not 
reproducible.


Thanks,

Pradeep Agrawal

Reply via email to