Skip to content
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

MYFACES-4653: Remove SecurityManager and associated APIs [4.1] #680

Merged
merged 2 commits into from
Mar 11, 2024

Conversation

pnicolucci
Copy link
Contributor

https://issues.apache.org/jira/browse/MYFACES-4653

  1. I've removed all the references to the SecurityManager and associated APIs in both the API and IMPL code.
  2. I've cleaned up the SPI in general to have more consistent naming conventions for some variables.
  3. I removed one comment in DefaultFaceletFactory that didn't look to be necessary any longer.

Please give this one a good review to ensure I didn't miss anything as there are many changes.

@pnicolucci pnicolucci self-assigned this Mar 8, 2024
@pnicolucci pnicolucci changed the title Remove security manager MYFACES-4653: Remove SecurityManager and assocaited APIs Mar 8, 2024
@melloware
Copy link
Contributor

So is AccessController.doPrivileged just completely not needed anymore in JDK17?

@pnicolucci
Copy link
Contributor Author

pnicolucci commented Mar 8, 2024

So is AccessController.doPrivileged just completely not needed anymore in JDK17?

It is still in Java17 and accessible. One theme of Jakarta EE11 was to work on removing the references to the SecurityManager in anticipation of it being removed in a future Java version.

See the Faces 4.1 Spec issue here: jakartaee/faces#1838, you can see there are some references to the Mojarra code base that do similar cleanup

@melloware
Copy link
Contributor

OK cool so this should be forward ported to 5.x once its accepted.

@pnicolucci
Copy link
Contributor Author

OK cool so this should be forward ported to 5.x once its accepted.

@melloware I can create a PR for 5.x once I merge here. Let me add @tandraschko and @volosied as reviewers as well to make sure they don't have any comment and I'll plan to merge this on Monday if no further feedback!

Thanks for the quick review!

@melloware melloware changed the title MYFACES-4653: Remove SecurityManager and assocaited APIs MYFACES-4653: Remove SecurityManager and associated APIs Mar 8, 2024
Copy link
Contributor

@volosied volosied left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Changes look good (code is so much cleaner now!)

Build locally and tested a small app -- everything looked to me.

@pnicolucci pnicolucci merged commit 4113e5b into apache:4.1.x Mar 11, 2024
@volosied volosied changed the title MYFACES-4653: Remove SecurityManager and associated APIs MYFACES-4653: Remove SecurityManager and associated APIs [4.1] Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants