[ https://issues.apache.org/jira/browse/LOG4J2-1563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15482723#comment-15482723 ]
Jason Tedor commented on LOG4J2-1563: ------------------------------------- That gets tricky because that means storing off the current policy, which means getting it, which will cause the JVM to load the default policy which will interfere with the permissions we need to setup the test. I'll attach a patch that removes the need to set a policy at all. > Log4j 2.6.2 can lose exceptions when a security manager is present > ------------------------------------------------------------------ > > Key: LOG4J2-1563 > URL: https://issues.apache.org/jira/browse/LOG4J2-1563 > Project: Log4j 2 > Issue Type: Bug > Components: Core > Affects Versions: 2.6.2 > Reporter: Jason Tedor > Assignee: Gary Gregory > Fix For: 2.7 > > Attachments: > 0002-Remove-policy-in-throwable-proxy-security-test.patch, > throwable-proxy-security-exception-2.6.2.patch > > > When Log4j is rendering an exception, it can attempt to load classes that it > does not have permissions to load when a security manager is present. > I have a patch and a failing test case for this; I will submit it shortly. > This is the backport for LOG4J2-1560. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-dev-h...@logging.apache.org