commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Kitching (JIRA)" <>
Subject [jira] Created: (LOGGING-107) AccessController use
Date Tue, 20 Jun 2006 11:51:29 GMT
AccessController use

         Key: LOGGING-107
     Project: Commons Logging
        Type: Bug

    Versions: 1.1 Final    
    Reporter: Simon Kitching

A problem has been reported with 1.1 by Aaron Bruegl on 6/6/06. An AccessControlException
is being thrown in an applet invoked from javascript even when the logging lib has been signed
and granted permissions. in the 1.1 release has this line:
            // try the parent classloader
            currentCL = currentCL.getParent();
which does seem to be a likely cause for the exception.

This code should be executed under an AccessController, so that granting the logging jar the
appropriate permissions can fix the problem; without this, all calling code also needs to
have that permission.

Maybe we should wrap method discoverLogImplementation in an AccessController, covering all
cases like this?

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message