Description
When tags downloaded by plugins includes a resource with invalid resource hierarchy (like: hiveservice/database/table/column), the plugin ignores the entire tags downloaded and continues to enforce current tags (if any), with the following error:
{{}}
2022-12-01T10:33:33.913Z ERROR RangerTagRefresher(serviceName=dev_hive)-16193 org.apache.ranger.plugin.contextenricher.RangerTagEnricher Could not create service-resource-matcher for service-resource:[RangerServiceResource={ id={8} guid={null} isEnabled={true} createdBy={null} updatedBy={null} createTime={null} updateTime={null} version={null} guid={null} serviceName={null} resourceElements={hiveservice={RangerPolicyResource={values={dev_hive } isExcludes={false} isRecursive={false} }} column={RangerPolicyResource={values={region } isExcludes={false} isRecursive={false} }} database={RangerPolicyResource={values={db1 } isExcludes={false} isRecursive={false} }} table={RangerPolicyResource={values={tbl1 } isExcludes={false} isRecursive={false} }} } ownerUser={null} additionalInfo={} resourceSignature={xxx} }]
Instead of ignoring entire downloaded tags, the plugin should only ignore incorrect resources.