You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2023/03/22 20:02:13 UTC
[Bug 66540] New: JDK18 SecurityManager fix in ant script does not work with direct invocation of ant Main
https://bz.apache.org/bugzilla/show_bug.cgi?id=66540
Bug ID: 66540
Summary: JDK18 SecurityManager fix in ant script does not work
with direct invocation of ant Main
Product: Ant
Version: 1.10.13
Hardware: All
OS: Linux
Status: NEW
Severity: critical
Priority: P2
Component: Core
Assignee: notifications@ant.apache.org
Reporter: stephen.felts@oracle.com
Target Milestone: ---
The current fix for invoking setSecurityManager in ant is to add
-Djava.security.manager=allow to the ant script.
I know there are several bugs related to this already.
This also doesn't work for direct invocation of ant using
org.apache.tools.ant.Main.
ant should be changed to not call setSecurityManager on JDK18 or higher.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 66540] JDK18 SecurityManager fix in ant script does not work with direct invocation of ant Main
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66540
--- Comment #1 from Jaikiran Pai <ja...@apache.org> ---
Hello Stephen, thank you for filing this. This helps keep track of all the
issues we are currently seeing with the latest Ant release. As you note, Ant
will have to stop setting the SecurityManager going forward.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 66540] JDK18 SecurityManager fix in ant script does not work with direct invocation of ant Main
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66540
stephen.felts@oracle.com <st...@oracle.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |stephen.felts@oracle.com
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 66540] JDK18 SecurityManager fix in ant script does not work with direct invocation of ant Main
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66540
Jaikiran Pai <ja...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Target Milestone|--- |1.10.14
Resolution|--- |FIXED
--- Comment #2 from Jaikiran Pai <ja...@apache.org> ---
I've reverted the changes we had done in Ant 1.10.13 to try and keep continuing
to use SecurityManager. Those introduced more issues than providing any value.
With the upcoming release of Ant, it will no longer use/support Java
SecurityManager when Ant is used in Java 18+ versions. This should get us past
all these issues.
It would be very helpful if you could try out our nightly build which contains
these fixes and see if it helps you with this issue
https://ci-builds.apache.org/job/Ant/job/Ant_Nightly/lastSuccessfulBuild/artifact/distribution/
--
You are receiving this mail because:
You are the assignee for the bug.