-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HDDS-2158. Fixing Json Injection Issue in JsonUtils. #1486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
c0c210b
28f5c2f
8f26d1f
74a5248
4502735
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -78,8 +78,8 @@ public Void call() throws Exception { | |
|
|
||
| List<OzoneAcl> result = client.getObjectStore().getAcl(obj); | ||
|
|
||
| System.out.printf("%s%n", JsonUtils.toJsonStringWithDefaultPrettyPrinter( | ||
| JsonUtils.toJsonString(result))); | ||
| System.out.printf("%s%n", | ||
| JsonUtils.toJsonStringWithDefaultPrettyPrinter(result)); | ||
|
||
| client.close(); | ||
| return null; | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here the result is true/false, we can directly print. Do we need toJsonStringWithDefaultPrettyPrinter here? Previously this was called with Acl set successfully: + result. But now just result, so is it okay if we directly use result to print?
Same comment for all AclHandler classes.