You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Bhavesh Amre (Jira)" <ji...@apache.org> on 2025/12/19 07:40:00 UTC
[jira] [Created] (RANGER-5428) [GDS] Datashare is getting deleted when security zone is deleted assigned in datashare
Bhavesh Amre created RANGER-5428:
------------------------------------
Summary: [GDS] Datashare is getting deleted when security zone is deleted assigned in datashare
Key: RANGER-5428
URL: https://issues.apache.org/jira/browse/RANGER-5428
Project: Ranger
Issue Type: Bug
Components: Ranger
Reporter: Bhavesh Amre
Assignee: Bhavesh Amre
*Current Behavior*
When a security zone is deleted in Apache Ranger, all associated datashares are automatically deleted through the `deleteAllGdsObjectsForSecurityZone()` method. This cascading deletion occurs even when the datashare is actively assigned to one or more datasets and some other scenarios.
*Steps To Reproduce*
1. Create a security zone with resources:
- Database: `vehicle`
- Table: `cars`
- Column: `*`
2. Create a datashare with resources and default 'select' privilege:
- Database: `vehicle`
- Table: `cars`
- Column: `*`
- Assign to the security zone created in step 1
3. Create a dataset with policy for user 'hrt_1' having '_READ' permission
4. Add the datashare to the dataset and activate it (status: ACTIVE)
5. Delete the security zone
*Result*: The datashare is deleted along with the security zone
--
This message was sent by Atlassian Jira
(v8.20.10#820010)