GitHub user pickypg opened a pull request:

    https://github.com/apache/incubator-groovy/pull/119

    Allow security managers to prevent system property access for Indy

    When using the `"indy"` setting, it tries to read a system property to 
enable logging.
    
    This change enables a JVM Security Manager to block this setting and 
therefore simply ignore the setting to use the default: do not log.
    
    From a security manager, you might otherwise catch a `SecurityException` 
containing:
    
    > access denied ("java.util.PropertyPermission" "groovy.indy.logging" 
"read")
    
    Not only is this not recoverable, but the `IndyInterface` class will be 
inaccessible thereafter due to it being in a `static` block that fails (the 
dreaded `NoClassDefFoundError`).

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/pickypg/incubator-groovy 
feature/honor-security-manager-for-indy-logging

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-groovy/pull/119.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #119
    
----
commit 945ed0719b49a98c541b661a6296af8cfe62b405
Author: Chris Earle <chris.ea...@elasticsearch.com>
Date:   2015-09-17T20:00:26Z

    Allow security managers to prevent system property access for Indy

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to