You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Dineshkumar Yadav (Jira)" <ji...@apache.org> on 2021/10/12 16:33:00 UTC
[jira] [Resolved] (RANGER-3473) REST API to assign permission to a
user returns 400 bad request error
[ https://issues.apache.org/jira/browse/RANGER-3473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dineshkumar Yadav resolved RANGER-3473.
---------------------------------------
Resolution: Not A Problem
> REST API to assign permission to a user returns 400 bad request error
> ---------------------------------------------------------------------
>
> Key: RANGER-3473
> URL: https://issues.apache.org/jira/browse/RANGER-3473
> Project: Ranger
> Issue Type: Bug
> Components: Ranger
> Reporter: Abhishek
> Assignee: Dineshkumar Yadav
> Priority: Major
>
> When using the following [REST API |https://jira.cloudera.com/browse/CDPD-30363#resource_XUserREST_createXUserPermission_POST]the response returns a 400 bad request.
> {code:java|bgColor=#f4f5f7}
> <VXUserPermission> {code}
> {code:java|bgColor=#f4f5f7}
> <isAllowed>1</isAllowed>{code}
> {code:java|bgColor=#f4f5f7}
> <loginId>user_login_name</loginId>{code}
> {code:java|bgColor=#f4f5f7}
> <moduleId>4</moduleId>{code}
> {code:java|bgColor=#f4f5f7}
> <moduleName>Audit</moduleName>
> {code}
> {code:java|bgColor=#f4f5f7}
> <userId>user_id</userId>{code}
> {code:java|bgColor=#f4f5f7}
> <userName>username</userName>
> {code}
> {code:java|bgColor=#f4f5f7}
> </VXUserPermission>{code}
> As all the necessary fields are present in the request body, the request should have worked properly.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)