Details
Description
The ranger policies json file should be formatted when exported at ranger service manager.
I found it's difficult to edit the unformatted json file.
ServiceDBStore.java
private void writeJson(List<RangerPolicy> policies, String jsonFileName, HttpServletResponse response) throws JSONException, IOException { ... ... //Gson gson = new Gson(); //shoud be replaced: Gson gson = new GsonBuilder().setPrettyPrinting().create(); String json = gson.toJson(rangerExportPolicyList, RangerExportPolicyList.class); ... ...
Attachments
Attachments
Issue Links
- links to