You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/11/02 11:15:00 UTC
[jira] [Work logged] (HDFS-16259) Catch and re-throw sub-classes of
AccessControlException thrown by any permission provider plugins (eg
Ranger)
[ https://issues.apache.org/jira/browse/HDFS-16259?focusedWorklogId=673096&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-673096 ]
ASF GitHub Bot logged work on HDFS-16259:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 02/Nov/21 11:14
Start Date: 02/Nov/21 11:14
Worklog Time Spent: 10m
Work Description: sodonnel merged pull request #3598:
URL: https://github.com/apache/hadoop/pull/3598
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Issue Time Tracking
-------------------
Worklog Id: (was: 673096)
Time Spent: 40m (was: 0.5h)
> Catch and re-throw sub-classes of AccessControlException thrown by any permission provider plugins (eg Ranger)
> --------------------------------------------------------------------------------------------------------------
>
> Key: HDFS-16259
> URL: https://issues.apache.org/jira/browse/HDFS-16259
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: namenode
> Reporter: Stephen O'Donnell
> Assignee: Stephen O'Donnell
> Priority: Major
> Labels: pull-request-available
> Time Spent: 40m
> Remaining Estimate: 0h
>
> When a permission provider plugin is enabled (eg Ranger) there are some scenarios where it can throw a sub-class of an AccessControlException (eg RangerAccessControlException). If this exception is allowed to propagate up the stack, it can give problems in the HDFS Client, when it unwraps the remote exception containing the AccessControlException sub-class.
> Ideally, we should make AccessControlException final so it cannot be sub-classed, but that would be a breaking change at this point. Therefore I believe the safest thing to do, is to catch any AccessControlException that comes out of the permission enforcer plugin, and re-throw an AccessControlException instead.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org