hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Dossett (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-12284) UserGroupInformation doAs can throw misleading exception
Date Thu, 30 Jul 2015 03:01:04 GMT
Aaron Dossett created HADOOP-12284:
--------------------------------------

             Summary: UserGroupInformation doAs can throw misleading exception
                 Key: HADOOP-12284
                 URL: https://issues.apache.org/jira/browse/HADOOP-12284
             Project: Hadoop Common
          Issue Type: Improvement
          Components: security
            Reporter: Aaron Dossett
            Assignee: Aaron Dossett
            Priority: Trivial


If doAs() catches a PrivilegedActionException it extracts the underlying cause through getCause
and then rethrows an exception based on the class of the Cause.  If getCause returns null
this executes, this is how it rethrown:

else {
        throw new UndeclaredThrowableException(cause);
      }

If cause == null that seems misleading. I have seen actual instances where cause is null,
so this isn't just a theoretical concern.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message