[ 
https://issues.apache.org/jira/browse/LOG4J2-2274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16378821#comment-16378821
 ] 

Ralph Goers commented on LOG4J2-2274:
-------------------------------------

Would it be possible to provide a unit test as well that demonstrates the 
failure so the fix can be verified?

> Running log4j in restricted environment 
> ----------------------------------------
>
>                 Key: LOG4J2-2274
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2274
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 2.10.0
>            Reporter: Sebastien Lannez
>            Priority: Major
>             Fix For: 2.11.0
>
>         Attachments: EnvironmentPropertySource.java
>
>
> Please find attached to this email a code change proposal for the 
> EnvironmentPropertySource so it does not  fail when used in conjonction with 
> highly restrictive security restriction managers.
>  
> I propose to surround with a try..catch the retrieval of environment 
> variables so the library does not fail to initialize when it runs in the 
> context of a security manager that always issues Exception when security 
> rules are violated.
>  
> see attachment for proposal



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to