ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Velmurugan Periasamy (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ARGUS-43) Grant API call throws NullPointerException
Date Tue, 16 Sep 2014 14:12:33 GMT

     [ https://issues.apache.org/jira/browse/ARGUS-43?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Velmurugan Periasamy updated ARGUS-43:
--------------------------------------
    Assignee: Selvamohan Neethiraj  (was: Velmurugan Periasamy)

> 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: Selvamohan Neethiraj
>
> 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)

Mime
View raw message