You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Anupam Rai (Jira)" <ji...@apache.org> on 2022/06/27 05:14:00 UTC

[jira] [Commented] (RANGER-3807) getUserRoles API gives 200 for non existing user passed to this API

    [ https://issues.apache.org/jira/browse/RANGER-3807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17558985#comment-17558985 ] 

Anupam Rai commented on RANGER-3807:
------------------------------------

Hi 

Issue impacts mentioned API as well and internally its calling restRole API  :  *public/v2/api/roles/user/.*

Thanks

> getUserRoles API gives 200 for non existing user passed to this API
> -------------------------------------------------------------------
>
>                 Key: RANGER-3807
>                 URL: https://issues.apache.org/jira/browse/RANGER-3807
>             Project: Ranger
>          Issue Type: Bug
>          Components: Ranger
>            Reporter: Pradeep Agrawal
>            Assignee: Pradeep Agrawal
>            Priority: Major
>             Fix For: 3.0.0
>
>         Attachments: 0001-RANGER-3807-getUserRoles-API-gives-200-for-non-exist.patch
>
>
> Steps to reproduce :
> 1. Hit this API  /roles/roles/user/\{user} with any random string
> 2. We should get any error message if user is not available 
> Actual : We are getting 200 response for any random string 
> Https status : 200 OK
> {code:java}
> [] {code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)