[
https://issues.apache.org/jira/browse/HDDS-10274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Attila Doroszlai updated HDDS-10274:
------------------------------------
Summary: Remove unused AccessPolicy (was: Remove or deprecate
AccessPolicy#deserializePolicyFromJsonString)
> Remove unused AccessPolicy
> --------------------------
>
> Key: HDDS-10274
> URL: https://issues.apache.org/jira/browse/HDDS-10274
> Project: Apache Ozone
> Issue Type: Sub-task
> Components: common
> Reporter: Attila Doroszlai
> Assignee: Attila Doroszlai
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.5.0
>
>
> Found by [~arafat2198]:
> bq. We have a class named as {{RangerAccessPolicy}} which has a method
> {{deserializePolicyFromJsonString}} that takes in a parameter of type
> {{JsonObject}} which is a representation of JSON data in memory and is a part
> of the GSON lib
> {{deserializePolicyFromJsonString}} is part of the {{AccessPolicy}}
> interface, too.
> Previously it was used by {{MultiTenantAccessAuthorizerRangerPlugin}}, which
> was removed in HDDS-6909.
> [~smeng], can you please help us understand if
> {{AccessPolicy#deserializePolicyFromJsonString}} is still needed or can be
> removed?
> We should strive to avoid using types defined in third-party libraries as
> part of public API. Such usage may cause trouble when trying to
> upgrade/replace these dependencies.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]