-
Notifications
You must be signed in to change notification settings - Fork 25k
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 accept SocketPermissions from core #22622
Remove accept SocketPermissions from core #22622
Conversation
On the reindex module needing One option would be to add the following permissions to the test-framework.policy file:
Unfortunately, that does not work with IDE junit test runners. As I mentioned, I had worked on adding support for parsing the directory code paths. The downside of that is you would need to duplicate permissions for the jar version of transport-netty4 (gradle runner) and the directory version of transport-netty4 (idea/probably eclipse runner). The second option, is that the Or maybe someone else has a better idea on this? |
Also I see that this broke the integration tests. So I'll need to resolve that before it is merged. |
I opened PR #22646 which I believe will be necessary for the integration tests to pass in relation to this PR. |
Alright @jasontedor and @s1monw - with the build updates to master this should be ready for review. The build changes also removed the need for reindex to have |
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.
LGTM hell yeah
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.
LGTM.
This is related to #22116. Core no longer needs
SocketPermission
accept
. This permission is relegated to the transport-netty4 moduleand (for tests) to the mocksocket jar.