[jboss-jira] [JBoss JIRA] (WFCORE-683) ListModuleRootsHandler and ModuleLocationHandler don't handle PrivilegedActionException properly

Brian Stansberry (JIRA) issues at jboss.org
Fri May 8 12:57:45 EDT 2015


Brian Stansberry created WFCORE-683:
---------------------------------------

             Summary: ListModuleRootsHandler and ModuleLocationHandler don't handle PrivilegedActionException properly
                 Key: WFCORE-683
                 URL: https://issues.jboss.org/browse/WFCORE-683
             Project: WildFly Core
          Issue Type: Bug
          Components: Domain Management
    Affects Versions: 1.0.0.CR1
            Reporter: Brian Stansberry
             Fix For: 2.0.0.Alpha2


The two inner class OSHs in ModuleLoadingResourceDefinition don't deal with exceptions properly. The invoke AccesController.doPrivileged and then deal with any PrivilegedActionException by rethrowing as OperationFailedException.

OperationFailedException represents a client mistake and is handled as such (e.g. isn't logged in the server log.) It shouldn't be thrown here unless the PrivilegedActionException.getCause() value is itself an OFE. Otherwise, the OSHs should throw a RuntimeException. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list