You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2007/03/07 05:12:49 UTC
DO NOT REPLY [Bug 41776] New: - java task not honoring AllPermission
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41776>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41776
Summary: java task not honoring AllPermission
Product: Ant
Version: 1.7.0
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P3
Component: Core tasks
AssignedTo: dev@ant.apache.org
ReportedBy: jingxue@digizenstudio.com
The following throws an "exitVM disallowed" error in 1.7.0 due to the related
bug fix:
<target name="usage" description="This usage help">
<java classname="org.apache.tools.ant.launch.Launcher">
<arg value="-projecthelp"/>
</java>
</target>
Strangely the following doesn't work either, by complaining not having
permission for "java.util.PropertyException ant.home read".
<target name="usage" description="This usage help">
<java classname="org.apache.tools.ant.launch.Launcher">
<arg value="-projecthelp"/>
<grant class="java.lang.AllPermission"/>
<grant class="java.lang.RuntimePermission" name="exitVM.*"/>
</java>
</target>
I changed the default constructor of types.Permissions to set delegateToOldSM to
true, that seems to have solved the problem. Unfortunately there isn't anyway
(that I can find) to set delegateToOldSM from an ant script. Is it possible to
expose it as an attribute on <permissions>? Or at least change its default value
to true?
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
DO NOT REPLY [Bug 41776] - java task not honoring AllPermission
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41776>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41776
------- Additional Comments From jingxue@digizenstudio.com 2007-03-06 20:14 -------
(In reply to comment #0)
> <target name="usage" description="This usage help">
> <java classname="org.apache.tools.ant.launch.Launcher">
> <arg value="-projecthelp"/>
> <grant class="java.lang.AllPermission"/>
> <grant class="java.lang.RuntimePermission" name="exitVM.*"/>
One more thing - that above line is for JDK 1.6. For JDK 1.5, it should be:
<grant class="java.lang.RuntimePermission" name="exitVM"/>
> </java>
> </target>
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
DO NOT REPLY [Bug 41776] - java task not honoring AllPermission
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41776>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41776
jkf@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From jkf@apache.org 2007-04-23 14:49 -------
Thanks for the report.
Fixed in head
At least in java 1.5 it is java.security.AllPermission, not java.lang.
The grants must be in the <permissions> part.
For some reason the AllPermission is not resolved in later stages.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org