Ramachandran created RANGER-4250:
------------------------------------
Summary: 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
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)