Skip to content
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

fix MinioAdminClient.listCannedPolicies() to return proper string values #1289

Merged
merged 5 commits into from
Jan 26, 2022

Conversation

Sam-Kramer
Copy link
Contributor

Currently, the returned map when listing all canned policies will return <String, LinkedHashMap> due to the policy (value) being a json blob. There's really no nice way to force jackson to treat it as raw json, thus my suggestion is to just treat it as a JsonNode, which then the user can either convert to a String, or if they've a pojo if they have it.

First commit shows how the unit test fix exposes the failure, and the second commit contains the actual fix.

harshavardhana
harshavardhana previously approved these changes Jan 24, 2022
harshavardhana
harshavardhana previously approved these changes Jan 24, 2022
@balamurugana balamurugana changed the title Fix list canned policies fix MinioAdminClient.listCannedPolicies() to return proper string values Jan 26, 2022
@balamurugana balamurugana merged commit 8c51c9a into minio:master Jan 26, 2022
@Sam-Kramer
Copy link
Contributor Author

Any chance we can get a release for this @balamurugana / @harshavardhana ?

@harshavardhana
Copy link
Member

Any chance we can get a release for this @balamurugana / @harshavardhana ?

Soon @Sam-Kramer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants