Skip to content

Conversation

ldematte
Copy link
Contributor

@ldematte ldematte commented Mar 8, 2025

Backports the following commits to 8.18:

…patibility purposes (elastic#124321)

Even if the contract for JDK methods using the SecurityManager states that the exception throw is of type SecurityException, many libraries (including our own, apparently!) violates that and use the type actually thrown by SecurityManager, AccessControlException. A prime example is the GCS/CSP libraries.
In order to maintain compatibility for them, we need to inherit from the more specific AccessControlException; this is less desirable, as AccessControlException is marked as deprecated for removal alongside the other SecurityManager classes, but we discussed and found this is the best short term solution.

More work will be needed -- again, this is a short term solution.

Replaces elastic#123984
@ldematte ldematte added :Core/Infra/Entitlements Entitlements infrastructure >non-issue auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Core/Infra Meta label for core/infra team labels Mar 8, 2025
@elasticsearchmachine elasticsearchmachine merged commit 23eec7b into elastic:8.18 Mar 8, 2025
15 checks passed
@ldematte ldematte deleted the backport/8.18/pr-124321 branch March 8, 2025 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport :Core/Infra/Entitlements Entitlements infrastructure >non-issue Team:Core/Infra Meta label for core/infra team v8.18.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants