You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Ramachandran (Jira)" <ji...@apache.org> on 2023/05/23 16:57:00 UTC
[jira] [Updated] (RANGER-4250) Ranger throws BAD Request Error when we are not passing exec user to the getRoles (/public/v2/api/roles/name/{name})
[ https://issues.apache.org/jira/browse/RANGER-4250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ramachandran updated RANGER-4250:
---------------------------------
Attachment: (was: 0001-RANGER-4250-Ranger-throws-BAD-Request-Error-when-we-.patch)
> Ranger throws BAD Request Error when we are not passing exec user to the getRoles (/public/v2/api/roles/name/{name})
> --------------------------------------------------------------------------------------------------------------------
>
> Key: RANGER-4250
> URL: https://issues.apache.org/jira/browse/RANGER-4250
> Project: Ranger
> Issue Type: Bug
> Components: Ranger
> Reporter: Ramachandran
> Assignee: Ramachandran
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.0.0
>
> Attachments: 0001-RANGER-4250-Ranger-throws-BAD-Request-Error-when-we-.patch
>
>
> Ranger throws BAD Request Error when we are not passing exec user to the getRoles (/public/v2/api/roles/name/{name)
> getGroupsForUser('null') failed javax.ws.rs.WebApplicationException: HTTP 400 Bad Request| at org.apache.ranger.common.RESTErrorUtil.createRESTException(RESTErrorUtil.java:56)| at org.apache.ranger.common.RESTErrorUtil.createRESTException(RESTErrorUtil.java:325)| at org.apache.ranger.service.XUserService.getXUserByUserName(XUserService.java:160)| at org.apache.ranger.biz.XUserMgr.getXUserByUserName(XUserMgr.java:153)| at org.apache.ranger.biz.XUserMgr.getGroupsForUser(XUserMgr.java:893)| at org.apache.ranger.biz.XUserMgr$$FastClassBySpringCGLIB$$57c6d473.invoke(<generated>)| at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)| at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)| at org.apache.ranger.biz.XUserMgr$$EnhancerBySpringCGLIB$$ab39f3cf.getGroupsForUser(<generated>)| at org.apache.ranger.rest.RoleREST.getRole(RoleREST.java:301)| atÂ
--
This message was sent by Atlassian Jira
(v8.20.10#820010)