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] [Created] (ARGUS-43) Grant API call throws NullPointerException
Date Fri, 12 Sep 2014 05:31:33 GMT
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 : 
	"description":"HBase Policy",
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

View raw message