Description
Service-def returned by get_service_def() API has incorrect resources in rowFilterDef. It returns:
"rowFilterDef": { "accessTypes": [ { "itemId": 1, "name": "select", "label": "select", "rbKeyLabel": null, "impliedGrants": [] } ], "resources": [ { "itemId": 1, "name": "select", "type": null, "level": 1, "parent": null, "mandatory": null, "lookupSupported": null, "recursiveSupported": null, "excludesSupported": null, "matcher": null, "matcherOptions": null, "validationRegEx": null, "validationMessage": null, "uiHint": null, "label": "select", "description": null, "rbKeyLabel": null, "rbKeyDescription": null, "rbKeyValidationMessage": null, "accessTypeRestrictions": null, "isValidLeaf": null } ] }
It should be:
"rowFilterDef": { "accessTypes": [ { "itemId": 1, "name": "select", "label": "select", "impliedGrants": [] } ], "resources": [ { "itemId": 1, "name": "database", "type": "string", "level": 10, "mandatory": true, "lookupSupported": true, "recursiveSupported": false, "excludesSupported": false, "matcher": "org.apache.ranger.plugin.resourcematcher.RangerDefaultResourceMatcher", "matcherOptions": { "wildCard": "false", "ignoreCase": "true" }, "validationRegEx": "", "validationMessage": "", "uiHint": "{ \"singleValue\":true }", "label": "Hive Database", "description": "Hive Database", "accessTypeRestrictions": [], "isValidLeaf": false }, { "itemId": 2, "name": "table", "type": "string", "level": 20, "parent": "database", "mandatory": true, "lookupSupported": true, "recursiveSupported": false, "excludesSupported": false, "matcher": "org.apache.ranger.plugin.resourcematcher.RangerDefaultResourceMatcher", "matcherOptions": { "wildCard": "false", "ignoreCase": "true" }, "validationRegEx": "", "validationMessage": "", "uiHint": "{ \"singleValue\":true }", "label": "Hive Table", "description": "Hive Table", "accessTypeRestrictions": [], "isValidLeaf": true } ] }