[ 
https://issues.apache.org/jira/browse/OPENEJB-1312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jean-Louis MONTEIRO closed OPENEJB-1312.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 4.0
         Assignee: Jean-Louis MONTEIRO

Remove the SecurityException catch block to prevent invalid state of the 
object. Moreover the catch block does not contain anything so the exception is 
silently ignore which is not relevant because it will result in an 
unpredictable behavior. Thanks Mark!

> SecurityException silently eaten, allowing 
> org.apache.openejb.loader.FileUtils to construct in invalid state
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: OPENEJB-1312
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1312
>             Project: OpenEJB
>          Issue Type: Bug
>          Components: container system
>    Affects Versions: 3.1.2
>         Environment: Any where a security manager restricts access to the 
> target of a FileUtils instance.
>            Reporter: Mark Eschbach
>            Assignee: Jean-Louis MONTEIRO
>             Fix For: 4.0
>
>         Attachments: openejb-se-chain.diff
>
>
> One line 60 a SecurityException is caught, however the exception is silenty 
> eaten within the defined catch block ranging from lines 60 to 62 in trunk on 
> Jul 28th, 2010.  If a SecurityException does occur the object constructs in 
> an invalid state and may result in a NullPointerException upon client usage.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to