Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Steps to reproduce :
JSON format :
{
"grantor":"admin",
"tables":"iemployee",
"columnFamilies":"personal",
"columns":"",
"description":"HBase Policy",
"repositoryName":"hbasedev",
"isEnabled":true,
"isAuditEnabled":true,
"permMapList":
[
]
}
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.
Attachments
Issue Links
- links to