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

API to find zones for a resource doesn't handle deleted service

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • admin
    • None

    Description

      Consider the following steps:

      1. Create a service named dev_hive of type hive
      2. Create a security-zone named zone-sales, containing sales database from dev_hive service.
      3. Call REST API to find security-zones for sales database: service/public/v2/api/zone-names/dev_hive/resource?resource:database=sales
      4. Above call returns ["zone-sales"]
      5. Delete service dev_hive
      6. 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"] 

      Attachments

        Activity

          People

            madhan Madhan Neethiraj
            madhan Madhan Neethiraj
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: