Skip to content

Commit 8e18e3f

Browse files
committed
Merge branch 'main' into filesettings
2 parents 7d2fb8d + 019ce3f commit 8e18e3f

File tree

275 files changed

+1698
-668
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

275 files changed

+1698
-668
lines changed

build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/fixtures/AbstractGradleInternalPluginFuncTest.groovy

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,22 @@ abstract class AbstractGradleInternalPluginFuncTest extends AbstractJavaGradleFu
2020
plugins {
2121
id 'elasticsearch.java-toolchain'
2222
}
23+
24+
toolchainManagement {
25+
jvm {
26+
javaRepositories {
27+
repository('bundledOracleOpendJdk') {
28+
resolverClass = org.elasticsearch.gradle.internal.toolchain.OracleOpenJdkToolchainResolver
29+
}
30+
repository('adoptiumJdks') {
31+
resolverClass = org.elasticsearch.gradle.internal.toolchain.AdoptiumJdkToolchainResolver
32+
}
33+
repository('archivedOracleJdks') {
34+
resolverClass = org.elasticsearch.gradle.internal.toolchain.ArchivedOracleJdkToolchainResolver
35+
}
36+
}
37+
}
38+
}
2339
""" + settingsFile.text
2440

2541
buildFile << """

distribution/tools/plugin-cli/src/main/java/org/elasticsearch/plugins/cli/InstallPluginAction.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,17 @@ void jarHellCheck(PluginDescriptor candidateInfo, Path candidateDir, Path plugin
923923
*/
924924
private PluginDescriptor installPlugin(InstallablePlugin descriptor, Path tmpRoot, List<Path> deleteOnFailure) throws Exception {
925925
final PluginDescriptor info = loadPluginInfo(tmpRoot);
926+
927+
Path legacyPolicyFile = tmpRoot.resolve(PluginDescriptor.ES_PLUGIN_POLICY);
928+
if (Files.exists(legacyPolicyFile)) {
929+
terminal.errorPrintln(
930+
"WARNING: this plugin contains a legacy Security Policy file. Starting with version 8.18, "
931+
+ "Entitlements replace SecurityManager as the security mechanism. Plugins must migrate their policy files to the new "
932+
+ "format. For more information, please refer to "
933+
+ PluginSecurity.ENTITLEMENTS_DESCRIPTION_URL
934+
);
935+
}
936+
926937
if (RuntimeVersionFeature.isSecurityManagerAvailable()) {
927938
PluginPolicyInfo pluginPolicy = PolicyUtil.getPluginPolicyInfo(tmpRoot, env.tmpDir());
928939
if (pluginPolicy != null) {

distribution/tools/plugin-cli/src/main/java/org/elasticsearch/plugins/cli/PluginSecurity.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
*/
3535
public class PluginSecurity {
3636

37+
public static final String ENTITLEMENTS_DESCRIPTION_URL =
38+
"https://www.elastic.co/guide/en/elasticsearch/plugins/current/creating-classic-plugins.html";
39+
3740
/**
3841
* prints/confirms policy exceptions with the user
3942
*/

docs/changelog/125204.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 125204
2+
summary: Return a Conflict status code if the model deployment is stopped by a user
3+
area: Machine Learning
4+
type: bug
5+
issues:
6+
- 123745

docs/changelog/125213.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 125213
2+
summary: Run `TransportGetDataStreamOptionsAction` on local node
3+
area: Data streams
4+
type: enhancement
5+
issues: []

docs/changelog/125214.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 125214
2+
summary: Run `TransportGetDataStreamLifecycleAction` on local node
3+
area: Data streams
4+
type: enhancement
5+
issues: []

docs/changelog/125352.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 125352
2+
summary: Fix NPE in rolling over unknown target and return 404
3+
area: Indices APIs
4+
type: bug
5+
issues: []

docs/changelog/125446.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 125446
2+
summary: Fix Semantic Text 8.x Upgrade Bug
3+
area: Mapping
4+
type: bug
5+
issues: []

docs/reference/query-languages/esql/_snippets/functions/description/to_date_nanos.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/_snippets/functions/examples/cbrt.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)