You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Madhan Neethiraj (Jira)" <ji...@apache.org> on 2024/02/08 17:57:00 UTC

[jira] [Created] (RANGER-4695) API to find zones for a resource doesn't handle deleted service

Madhan Neethiraj created RANGER-4695:
----------------------------------------

             Summary: API to find zones for a resource doesn't handle deleted service
                 Key: RANGER-4695
                 URL: https://issues.apache.org/jira/browse/RANGER-4695
             Project: Ranger
          Issue Type: Bug
          Components: admin
    Affects Versions: 3.0.0
            Reporter: Madhan Neethiraj
            Assignee: Madhan Neethiraj


Consider the following steps:
 # Create a service named {{dev_hive}} of type {{hive}}
 # Create a security-zone named {{{}zone-sales{}}}, containing {{sales}} database from {{dev_hive}} service.
 # Call REST API to find security-zones for {{sales}} database: {{service/public/v2/api/zone-names/dev_hive/resource?resource:database=sales}}
 # Above call returns ["zone-sales"]
 # Delete service {{dev_hive}}
 # Call the same REST API from step #3

Expected result: since service has been deleted, this API should return an empty value.

Actual result: the API continues to return {{["zone-sales"] }}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)