commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Laurent Sauvage (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CONFIGURATION-528) ConfigurationInterpolator class does not load if security manager enabled
Date Wed, 06 Mar 2013 14:34:12 GMT

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

Laurent Sauvage closed CONFIGURATION-528.
-----------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0

Perfect. Thanks.
                
> ConfigurationInterpolator class does not load if security manager enabled
> -------------------------------------------------------------------------
>
>                 Key: CONFIGURATION-528
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-528
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Interpolation
>    Affects Versions: 1.9
>            Reporter: Laurent Sauvage
>            Priority: Minor
>             Fix For: 2.0
>
>
> ConfigurationInterpolator class does not load if security manager is enabled because
its static initializer instantiate EnvironmentLookup which instantiate EnvironmentConfiguration
which use System.getenv()in its constructor. But System.getenv() can fail if RuntimePermission("getenv.*")
is not granted.
> Notice this "bug" is annoying to catch because a NoClassDefFoundError is thrown when
classloading ConfigurationInterpolator without the good AccessControlException showing the
real source of the problem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message