[
https://issues.apache.org/jira/browse/HADOOP-12284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Steve Loughran updated HADOOP-12284:
------------------------------------
Attachment: HADOOP-12284-002.patch
LGTM; this is the patch I'll commit if jenkins is happy
# chopped the line so that checkstyle wouldn't complain
# added logging of the PAE to the log.Debug() clause above. That way, if
someone is logging, they'll see what happened
> 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
> Attachments: HADOOP-12284-002.patch, HADOOP-12284.example,
> HADOOP-12284.patch
>
>
> If doAs() catches a PrivilegedActionException it extracts the underlying
> cause through getCause and then re-throws an exception based on the class of
> the Cause. If getCause returns null, this is how it gets re-thrown:
> 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)