Sanket-Shelar opened a new pull request, #1125:
URL: https://github.com/apache/ranger/pull/1125

   …er due to 403 Error
   
   ## What changes were proposed in this pull request?
   
   Governed Data Sharing (GDS) policies are designed to be managed exclusively 
through GDS APIs. However, they were inadvertently being included when 
exporting policies from the Report page. When users attempted to import these 
files back through the Service Manager, it resulted in a 403 error.
   
   This patch resolves the issue by aligning the export and import behaviors:
   
   Export Updates: GDS policies are now automatically excluded when exporting 
policies (JSON, CSV, or Excel).
   
   Import Updates: If a user imports a legacy file that still contains GDS 
policies, the system will now safely skip the GDS policies (logging a helpful 
warning) rather than failing the entire import. This ensures that non-GDS 
policies, like Hive, continue to import successfully.
   
   
   ## How was this patch tested?
   
   Created both GDS objects (datashares, datasets, policies) and non-GDS 
policies (Hive).
   
   Exported policies from the Report page and verified that GDS policies are no 
longer included in the file.
   
   Imported the newly exported file via Service Manager and confirmed it 
succeeds without a 403 error.
   
   Imported a legacy export file containing GDS policies to verify that non-GDS 
policies import correctly while GDS policies are cleanly skipped and logged.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to