You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Velmurugan Periasamy (JIRA)" <ji...@apache.org> on 2014/09/12 07:31:33 UTC
[jira] [Created] (ARGUS-43) Grant API call throws
NullPointerException
Velmurugan Periasamy created ARGUS-43:
-----------------------------------------
Summary: Grant API call throws NullPointerException
Key: ARGUS-43
URL: https://issues.apache.org/jira/browse/ARGUS-43
Project: Argus
Issue Type: Bug
Reporter: Velmurugan Periasamy
Assignee: Velmurugan Periasamy
Steps to reproduce :
JSON format :
{
"grantor":"admin",
"tables":"iemployee",
"columnFamilies":"personal",
"columns":"",
"description":"HBase Policy",
"repositoryName":"hbasedev",
"isEnabled":true,
"isAuditEnabled":true,
"permMapList":
[
{
"groupList":["public"],
"permList":["read","write","create","admin"]
}
]
}
use below command to call API :
curl -i --header "Accept:application/json" -H "Content-Type: application/json" -X POST --data @grant_hbase.json http://<hostname>:6080/service/assets/resources/grant
This throws NPE in tomcat log and call returns 404. This is because Grant API does not expect repository type to be present with json request, so repository type validation need to be handled internally based on repository name and associated db record of that repository name.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)