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/01 17:14:00 UTC
[jira] [Created] (HDDS-10274) Remove or deprecate AccessPolicy#deserializePolicyFromJsonString
Attila Doroszlai created HDDS-10274:
---------------------------------------
Summary: Remove or deprecate AccessPolicy#deserializePolicyFromJsonString
Key: HDDS-10274
URL: https://issues.apache.org/jira/browse/HDDS-10274
Project: Apache Ozone
Issue Type: Improvement
Components: common
Reporter: Attila Doroszlai
Assignee: Attila Doroszlai
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