[logback-dev] [JIRA] Issue Comment Edited: (LBCLASSIC-263) Logback Classic causes SecurityException

Ceki Gulcu (JIRA) noreply-jira at qos.ch
Thu Jul 7 19:27:51 CEST 2011


    [ http://jira.qos.ch/browse/LBCLASSIC-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12057#action_12057 ] 

Ceki Gulcu edited comment on LBCLASSIC-263 at 7/7/11 7:27 PM:
--------------------------------------------------------------

Hello,

Is the invocation Class.getClassLoader() in PackagingDataCalculator the only place where you see a SecurityException thrown by a SecurityManager?

      was (Author: noreply.ceki at qos.ch):
    Hello,

Is the invocation Class.getClassLoader() in PackagingDataCalculator the only time you see SecurityExceptions thrown by logback under a SecurityManager?
  
> Logback Classic causes SecurityException
> ----------------------------------------
>
>                 Key: LBCLASSIC-263
>                 URL: http://jira.qos.ch/browse/LBCLASSIC-263
>             Project: logback-classic
>          Issue Type: Bug
>    Affects Versions: 0.9.28
>            Reporter: NC
>            Assignee: Logback dev list
>         Attachments: PackagingDataCalculator.diff
>
>
> PackagingDataCalculator invokes Class.getClassLoader().  This method throws a SecurityException when running under a security manager and that manager denies access to the ClassLoader.
> I'm submitting a PackagingDataCalculator patch which wraps the getClassLoader() invocation in a doPrivileged block.  This allows these calls to succeed when the getClassLoader RuntimePermission is granted to logback-classic.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the logback-dev mailing list