[ 
https://issues.apache.org/jira/browse/RANGER-5212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Madhan Neethiraj resolved RANGER-5212.
--------------------------------------
    Fix Version/s: 3.0.0
                   2.8.0
       Resolution: Fixed

master branch: 
https://github.com/apache/ranger/commit/b22d25890818aa75ddc049e433fc217296beef37

ranger-2.8 branch: 
https://github.com/apache/ranger/commit/20288436d3a9b07dce41ab62b365e080a9d6e55c

> Search filter in Roles tab does not consider all relevant role columns
> ----------------------------------------------------------------------
>
>                 Key: RANGER-5212
>                 URL: https://issues.apache.org/jira/browse/RANGER-5212
>             Project: Ranger
>          Issue Type: Improvement
>          Components: Ranger
>            Reporter: Rakesh Gupta
>            Assignee: Rakesh Gupta
>            Priority: Major
>             Fix For: 3.0.0, 2.8.0
>
>         Attachments: RANGER-5212.patch
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> In the {*}Ranger Admin UI and Auditor UI{*}, under *Users/Groups/Roles → 
> Roles* tab, the result table displays four columns:
>  * Role Name
>  * Users
>  * Groups
>  * Roles
> The search bar currently offers filters for:
>  * Role Name
>  * User Name
>  * Group Name
> *Issue:*
> When using the *Role Name* filter, it only matches values from the *Role 
> Name* column. It does *not* match values from the *Roles* column, even though 
> that column contains the role for Role Admin and Role Auditor
> *Example:*
> Given the following role data:
>  
> ||*Role Name*||*Users*||*Groups*||*Roles*||
> |role_first|-|-|-|
> |role_second|test|-|role_first|
>  
> If the user searches using the *Role Name* filter with the keyword 
> \{{role_first. }}The table does *not* show the role_second entry, even though 
> role_first is listed under its *Roles* column.
> *Expected Behavior:*
> The *Role Name* filter should match values from *both* the *Role Name* and 
> *Roles* columns. In the above case, searching for role_first should return:
>  * role_first (from Role Name)
>  * role_second (because role_first appears under its Roles column)
> *Reference Behavior:*
> In the Role {*}User{*}, searching by a role name is working correctly.
> *Steps to Reproduce:*
> 1.Go to {*}Ranger Admin UI / Auditor UI -> Users/Groups/Roles -> Roles{*}.
> 2. Create two roles:
>  * role_first (no members)
>  * role_second with user test and assigned role role_first
> 3. Use the *Role Name* search filter with the value role_first
> 4. Observe that role_second is *not* returned, even though it references 
> role_first under the *Roles* column.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to