ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Hanin (JIRA)" <>
Subject [jira] Resolved: (IVY-1015) Flag to disable System property lookups by Ivy
Date Sun, 25 Jan 2009 17:50:59 GMT


Xavier Hanin resolved IVY-1015.

       Resolution: Fixed
    Fix Version/s:     (was: 2.0.x)
         Assignee: Xavier Hanin

I've solved the problem without introducing a flag, by simply catching the exception and outputting
a verbose message when you don't have access to all system properties. Please reopen if you
think a flag would really be a better solution.

> Flag to disable System property lookups by Ivy
> ----------------------------------------------
>                 Key: IVY-1015
>                 URL:
>             Project: Ivy
>          Issue Type: New Feature
>    Affects Versions: 1.0, 1.1, 1.2, 1.3, 1.3.1, 1.4, 1.4.1, 2.0.0-alpha-1, 2.0.0-alpha-2,
2.0.0-beta-1, 2.0.0-beta-2, 2.0-RC1, 2.0-RC2, 2.0
>            Reporter: Jeffrey Sinclair
>            Assignee: Xavier Hanin
>             Fix For: trunk
> When configuring Ivy through IvySettings, a call to System.getProperties() is made. 
> System property calls are typically disabled through the security manager in shared web
containers which results in the following stack trace:
> access denied
> (java.util.PropertyPermission * read,write)
>         java.lang.SecurityManager.checkPermission(
>         java.lang.SecurityManager.checkPropertiesAccess(
>         java.lang.System.getProperties(
>         org.apache.ivy.core.settings.IvySettings.addSystemProperties(
>         org.apache.ivy.core.settings.IvySettings.<init>(
>         org.apache.ivy.core.settings.IvySettings.<init>(
> Since there is no out-of-the-box workaround, Ivy cannot be used in such an environment.
> Ivy could be made more web app friendly by providing a flag to disable System property
> It would be useful to configure this flag through API on the IvySettings class.
> Any other usage of system properties outside of the IvySettings file should also be controllable.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message