-
Notifications
You must be signed in to change notification settings - Fork 599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove security manager in Java 24 #30277
base: integration
Are you sure you want to change the base?
Remove security manager in Java 24 #30277
Conversation
Code analysis and actionsDO NOT DELETE THIS COMMENT.
|
dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/webcontainerext/AbstractJSPExtensionServletWrapper.java
Outdated
Show resolved
Hide resolved
7a40627
to
163bdf1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see any builds, but the change looks fine to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, update the copyright to 2024, if you can.
This avoids trying to add permissions to the collection from the Policy. That is no longer allowed on Java 24. There is no need to use the Policy if there is no security manager available.
163bdf1
to
5253fbf
Compare
!build |
Your personal pipeline request is at https://libh-proxy1.fyre.ibm.com/cognitive/pipelineAnalysis.html?uuid=35c70ef5-5235-47c1-bc3f-988e025ef754 Target locations of links might be accessible only to IBM employees. |
Your personal pipeline request is at https://libh-proxy1.fyre.ibm.com/cognitive/pipelineAnalysis.html?uuid=432168fc-1481-4ddf-a19d-9db506c3b0df Target locations of links might be accessible only to IBM employees. |
Code analysis and actionsDO NOT DELETE THIS COMMENT.
|
1 similar comment
Code analysis and actionsDO NOT DELETE THIS COMMENT.
|
This PR is to cover a branch rename of #30226 since I used a + sign and the CSI team said to avoid using that character.
In Java 24, they are permanently disabling the security manager. And in Java 24, build 24, they seemed to have introduced that code as almost none of our FATs passed.
[junit] Error occurred during initialization of VM
[junit] java.lang.Error: A command line option has attempted to allow or enable the Security Manager. Enabling a Security Manager is not supported.
[junit] at java.lang.System.initPhase3(java.base@24-ea/System.java:2070)
Added logic for our script variable use.java.security.manager to not allow it to be set to -Djava.security.manager=allow if we are running Java 24 or higher.
While this helped, there were still many build breaks that generate FFDC files with stack traces like:
So @tjwatson was gracious to provide a fix for that to combine with my script changes.
release bug
label if applicable: https://github.com/OpenLiberty/open-liberty/wiki/Open-Liberty-Conventions).