Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-43

Grant API call throws NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.4.0
    • 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":
      [

      { "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.

      Attachments

        Issue Links

          Activity

            People

              vel Velmurugan Periasamy
              vel Velmurugan Periasamy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: