You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Simon Kitching (JIRA)" <ji...@apache.org> on 2006/11/19 10:10:39 UTC
[jira] Resolved: (LOGGING-106) AccessControlException when loading
LogFactory class without system properties permission
[ http://issues.apache.org/jira/browse/LOGGING-106?page=all ]
Simon Kitching resolved LOGGING-106.
------------------------------------
Resolution: Fixed
> AccessControlException when loading LogFactory class without system properties permission
> -----------------------------------------------------------------------------------------
>
> Key: LOGGING-106
> URL: http://issues.apache.org/jira/browse/LOGGING-106
> Project: Commons Logging
> Issue Type: Bug
> Affects Versions: 1.1.0
> Reporter: Simon Kitching
>
> The LogFactory static initializer calls createFactoryStore which calls System.getProperty. If the class doesn't have access rights to see system properties (eg when in an applet) then the LogFactory class cannot load, and hence the app is completely stuffed.
> I think the system property access should be wrapped in a try/catch, with any access failure behaving as if the propery is not set.
> In addition, we might want to use an AccessController in the static block so that a signed logging jar can be granted system property access [without having to grant all its callers that permission too].
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org