You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2024/02/03 16:12:00 UTC
[jira] [Updated] (HDDS-10274) Remove unused AccessPolicy
[ 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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org