diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml index 35f374ccf9489..8ed1c4458a099 100644 --- a/gradle/verification-metadata.xml +++ b/gradle/verification-metadata.xml @@ -3110,6 +3110,11 @@ + + + + + @@ -4928,6 +4933,11 @@ + + + + + diff --git a/modules/repository-azure/build.gradle b/modules/repository-azure/build.gradle index 64c8d003da33a..70fa650518ba1 100644 --- a/modules/repository-azure/build.gradle +++ b/modules/repository-azure/build.gradle @@ -83,8 +83,7 @@ dependencies { implementation project(":modules:transport-netty4") implementation("org.slf4j:slf4j-api:${versions.slf4j}") - runtimeOnly "org.slf4j:slf4j-nop:${versions.slf4j}" -// runtimeOnly("org.apache.logging.log4j:log4j-slf4j-impl:${versions.log4j}") https://github.com/elastic/elasticsearch/issues/93714 + runtimeOnly("org.apache.logging.log4j:log4j-slf4j2-impl:${versions.log4j}") testImplementation project(':test:fixtures:azure-fixture') yamlRestTestImplementation project(':test:fixtures:azure-fixture') @@ -104,6 +103,7 @@ tasks.named("dependencyLicenses").configure { mapping from: /stax-.*/, to: 'stax' mapping from: /reactor-netty-.*/, to: 'reactor-netty' mapping from: /reactive-streams.*/, to: 'reactive-streams' + mapping from: /log4j.*/, to: 'log4j' } tasks.named("thirdPartyAudit").configure { @@ -173,8 +173,6 @@ tasks.named("thirdPartyAudit").configure { // from com.ctc.wstx.shaded.msv_core.driver.textui.Driver (woodstox-core) 'com.ctc.wstx.shaded.msv_core.driver.textui.Driver', - // [missing classes] SLF4j includes an optional class that depends on an extension class. see Log4jLogger#createConverter - // 'org.slf4j.ext.EventData' - bring back when https://github.com/elastic/elasticsearch/issues/93714 is done // Optional dependency of tink 'com.google.crypto.tink.subtle.Ed25519Sign', diff --git a/x-pack/plugin/ent-search/licenses/log4j-slf4j-impl-LICENSE.txt b/modules/repository-azure/licenses/log4j-LICENSE.txt similarity index 100% rename from x-pack/plugin/ent-search/licenses/log4j-slf4j-impl-LICENSE.txt rename to modules/repository-azure/licenses/log4j-LICENSE.txt diff --git a/x-pack/plugin/ent-search/licenses/log4j-slf4j-impl-NOTICE.txt b/modules/repository-azure/licenses/log4j-NOTICE.txt similarity index 100% rename from x-pack/plugin/ent-search/licenses/log4j-slf4j-impl-NOTICE.txt rename to modules/repository-azure/licenses/log4j-NOTICE.txt diff --git a/modules/repository-azure/licenses/slf4j-nop-LICENSE.txt b/modules/repository-azure/licenses/slf4j-nop-LICENSE.txt deleted file mode 100644 index 508a27283f65f..0000000000000 --- a/modules/repository-azure/licenses/slf4j-nop-LICENSE.txt +++ /dev/null @@ -1,24 +0,0 @@ -Copyright (c) 2004-2007 QOS.ch -All rights reserved. - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - - diff --git a/modules/repository-s3/build.gradle b/modules/repository-s3/build.gradle index 55974565edcfa..83ba1823a29c0 100644 --- a/modules/repository-s3/build.gradle +++ b/modules/repository-s3/build.gradle @@ -46,6 +46,7 @@ dependencies { runtimeOnly "org.apache.logging.log4j:log4j-1.2-api:${versions.log4j}" runtimeOnly "org.reactivestreams:reactive-streams:${versions.reactive_streams}" runtimeOnly "org.slf4j:slf4j-api:${versions.slf4j}" + runtimeOnly "org.apache.logging.log4j:log4j-slf4j2-impl:${versions.log4j}" runtimeOnly "software.amazon.awssdk:arns:${versions.awsv2sdk}" runtimeOnly "software.amazon.awssdk:aws-query-protocol:${versions.awsv2sdk}" runtimeOnly "software.amazon.awssdk:checksums-spi:${versions.awsv2sdk}" @@ -119,6 +120,7 @@ tasks.withType(AbstractDependenciesTask).configureEach { mapping from: 'sts', to: 'aws-sdk-2' mapping from: 'third-party-jackson-core', to: 'aws-sdk-2' mapping from: 'utils', to: 'aws-sdk-2' + mapping from: /log4j.*/, to: 'log4j' } esplugin.bundleSpec.from('config/repository-s3') { diff --git a/modules/repository-s3/src/javaRestTest/java/org/elasticsearch/repositories/s3/RepositoryS3BasicCredentialsRestIT.java b/modules/repository-s3/src/javaRestTest/java/org/elasticsearch/repositories/s3/RepositoryS3BasicCredentialsRestIT.java index dfe3bbbc2613e..8757263427d25 100644 --- a/modules/repository-s3/src/javaRestTest/java/org/elasticsearch/repositories/s3/RepositoryS3BasicCredentialsRestIT.java +++ b/modules/repository-s3/src/javaRestTest/java/org/elasticsearch/repositories/s3/RepositoryS3BasicCredentialsRestIT.java @@ -50,6 +50,8 @@ public class RepositoryS3BasicCredentialsRestIT extends AbstractRepositoryS3Rest .keystore("s3.client." + CLIENT + ".access_key", ACCESS_KEY) .keystore("s3.client." + CLIENT + ".secret_key", SECRET_KEY) .setting("s3.client." + CLIENT + ".endpoint", s3Fixture::getAddress) + .systemProperty("es.insecure_network_trace_enabled", "true") + .setting("logger.org.apache.http.headers", "TRACE") .build(); @ClassRule diff --git a/modules/repository-s3/src/javaRestTest/java/org/elasticsearch/repositories/s3/RepositoryS3WireLoggingRestIT.java b/modules/repository-s3/src/javaRestTest/java/org/elasticsearch/repositories/s3/RepositoryS3WireLoggingRestIT.java new file mode 100644 index 0000000000000..d830eadd4b11e --- /dev/null +++ b/modules/repository-s3/src/javaRestTest/java/org/elasticsearch/repositories/s3/RepositoryS3WireLoggingRestIT.java @@ -0,0 +1,115 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the "Elastic License + * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side + * Public License v 1"; you may not use this file except in compliance with, at + * your election, the "Elastic License 2.0", the "GNU Affero General Public + * License v3.0 only", or the "Server Side Public License, v 1". + */ + +package org.elasticsearch.repositories.s3; + +import fixture.aws.DynamicRegionSupplier; +import fixture.s3.S3HttpFixture; + +import com.carrotsearch.randomizedtesting.annotations.ThreadLeakFilters; +import com.carrotsearch.randomizedtesting.annotations.ThreadLeakScope; + +import org.elasticsearch.common.bytes.BytesArray; +import org.elasticsearch.common.xcontent.XContentHelper; +import org.elasticsearch.test.cluster.ElasticsearchCluster; +import org.elasticsearch.test.cluster.LogType; +import org.elasticsearch.test.fixtures.testcontainers.TestContainersThreadFilter; +import org.elasticsearch.xcontent.XContentType; +import org.junit.ClassRule; +import org.junit.rules.RuleChain; +import org.junit.rules.TestRule; + +import java.io.BufferedReader; +import java.io.InputStreamReader; +import java.nio.charset.StandardCharsets; +import java.util.HashSet; +import java.util.List; +import java.util.function.Supplier; + +import static fixture.aws.AwsCredentialsUtils.fixedAccessKey; +import static org.hamcrest.Matchers.hasSize; + +@ThreadLeakFilters(filters = { TestContainersThreadFilter.class }) +@ThreadLeakScope(ThreadLeakScope.Scope.NONE) // https://github.com/elastic/elasticsearch/issues/102482 +public class RepositoryS3WireLoggingRestIT extends AbstractRepositoryS3RestTestCase { + + private static final String PREFIX = getIdentifierPrefix("RepositoryS3WireLoggingRestIT"); + private static final String BUCKET = PREFIX + "bucket"; + private static final String BASE_PATH = PREFIX + "base_path"; + private static final String ACCESS_KEY = PREFIX + "access-key"; + private static final String SECRET_KEY = PREFIX + "secret-key"; + private static final String CLIENT = "wire_logging_client"; + + private static final Supplier regionSupplier = new DynamicRegionSupplier(); + private static final S3HttpFixture s3Fixture = new S3HttpFixture( + true, + BUCKET, + BASE_PATH, + fixedAccessKey(ACCESS_KEY, regionSupplier, "s3") + ); + + public static ElasticsearchCluster cluster = ElasticsearchCluster.local() + .module("repository-s3") + .systemProperty("aws.region", regionSupplier) + .systemProperty("es.insecure_network_trace_enabled", "true") + .setting("logger.org.apache.http.headers", "DEBUG") + .setting("logger.org.apache.http.wire", "DEBUG") + .setting("logger.software.amazon.awssdk.request", "DEBUG") + .keystore("s3.client." + CLIENT + ".access_key", ACCESS_KEY) + .keystore("s3.client." + CLIENT + ".secret_key", SECRET_KEY) + .setting("s3.client." + CLIENT + ".endpoint", s3Fixture::getAddress) + .build(); + + @ClassRule + public static TestRule ruleChain = RuleChain.outerRule(s3Fixture).around(cluster); + + @Override + protected String getTestRestCluster() { + return cluster.getHttpAddresses(); + } + + @Override + protected String getBucketName() { + return BUCKET; + } + + @Override + protected String getBasePath() { + return BASE_PATH; + } + + @Override + protected String getClientName() { + return CLIENT; + } + + @Override + public void testSnapshotAndRestore() throws Exception { + super.testSnapshotAndRestore(); + try ( + var logReader = new BufferedReader( + new InputStreamReader(cluster.getNodeLog(0, LogType.SERVER_JSON), StandardCharsets.ISO_8859_1) + ) + ) { + final var neededLoggers = new HashSet<>( + List.of("org.apache.http.wire", "org.apache.http.headers", "software.amazon.awssdk.request") + ); + String currentLine; + + while ((currentLine = logReader.readLine()) != null && neededLoggers.isEmpty() == false) { + if (XContentHelper.convertToMap(new BytesArray(currentLine), false, XContentType.JSON) + .v2() + .get("log.logger") instanceof String loggerName) { + neededLoggers.remove(loggerName); + } + } + assertThat(neededLoggers, hasSize(0)); + } + } +} diff --git a/server/src/main/java/org/elasticsearch/common/logging/Loggers.java b/server/src/main/java/org/elasticsearch/common/logging/Loggers.java index decb1d4fdfd6c..a7e9be8f1b627 100644 --- a/server/src/main/java/org/elasticsearch/common/logging/Loggers.java +++ b/server/src/main/java/org/elasticsearch/common/logging/Loggers.java @@ -46,7 +46,7 @@ public class Loggers { */ static final List RESTRICTED_LOGGERS = NetworkTraceFlag.TRACE_ENABLED ? Collections.emptyList() - : List.of("org.apache.http", "com.amazonaws.request"); + : List.of("org.apache.http", "com.amazonaws.request", "software.amazon.awssdk"); public static final Setting LOG_DEFAULT_LEVEL_SETTING = new Setting<>( "logger.level", diff --git a/x-pack/plugin/core/build.gradle b/x-pack/plugin/core/build.gradle index cc763a96365d0..c86e56167203d 100644 --- a/x-pack/plugin/core/build.gradle +++ b/x-pack/plugin/core/build.gradle @@ -33,6 +33,8 @@ esplugin { tasks.withType(AbstractDependenciesTask).configureEach { mapping from: /http.*/, to: 'httpclient' // pulled in by rest client mapping from: /commons-.*/, to: 'commons' // pulled in by rest client + mapping from: /slf4j-.*/, to: 'slf4j' + mapping from: /log4j-.*/, to: 'log4j' } configurations { @@ -48,6 +50,16 @@ dependencies { api "org.apache.httpcomponents:httpcore:${versions.httpcore}" api "org.apache.httpcomponents:httpcore-nio:${versions.httpcore}" api "org.apache.httpcomponents:httpasyncclient:${versions.httpasyncclient}" + + // Ideally this would be `runtimeOnly` so that we don't accidentally write code against the SLF4j API + // However, some child plugins (like security) need to use slf4j directly in order to manage logging for their dependencies :( + // And due to the way our plugin loading handles java modules between dependent plugins, this plugin (x-pack-core) needs to declare + // a module dependency on slf4j (`requires org.slf4j`) so that security can also be dependent on it + // And having a module dependency counts as using the jar, so we can't make it `runtimeOnly` :( + + implementation "org.slf4j:slf4j-api:${versions.slf4j}" + runtimeOnly "org.apache.logging.log4j:log4j-slf4j2-impl:${versions.log4j}" + api "commons-logging:commons-logging:${versions.commonslogging}" api "org.apache.logging.log4j:log4j-1.2-api:${versions.log4j}" api "commons-codec:commons-codec:${versions.commonscodec}" @@ -61,9 +73,6 @@ dependencies { implementation project(":x-pack:plugin:core:template-resources") testImplementation "org.elasticsearch:mocksocket:${versions.mocksocket}" - testImplementation "org.apache.logging.log4j:log4j-slf4j-impl:${versions.log4j}" - // this might suffer from https://github.com/elastic/elasticsearch/issues/93714 - testImplementation "org.slf4j:slf4j-api:${versions.slf4j}" testImplementation project(path: ':modules:reindex') testImplementation project(path: ':modules:parent-join') testImplementation project(path: ':modules:lang-mustache') diff --git a/x-pack/plugin/identity-provider/licenses/slf4j-api-LICENSE.txt b/x-pack/plugin/core/licenses/slf4j-LICENSE.txt similarity index 100% rename from x-pack/plugin/identity-provider/licenses/slf4j-api-LICENSE.txt rename to x-pack/plugin/core/licenses/slf4j-LICENSE.txt diff --git a/modules/repository-azure/licenses/slf4j-nop-NOTICE.txt b/x-pack/plugin/core/licenses/slf4j-NOTICE.txt similarity index 100% rename from modules/repository-azure/licenses/slf4j-nop-NOTICE.txt rename to x-pack/plugin/core/licenses/slf4j-NOTICE.txt diff --git a/x-pack/plugin/core/src/main/java/module-info.java b/x-pack/plugin/core/src/main/java/module-info.java index 3d28eff88a24a..6e585534f6de6 100644 --- a/x-pack/plugin/core/src/main/java/module-info.java +++ b/x-pack/plugin/core/src/main/java/module-info.java @@ -23,6 +23,7 @@ requires unboundid.ldapsdk; requires org.elasticsearch.tdigest; requires org.elasticsearch.xcore.templates; + requires org.slf4j; exports org.elasticsearch.index.engine.frozen; exports org.elasticsearch.license; diff --git a/x-pack/plugin/ent-search/build.gradle b/x-pack/plugin/ent-search/build.gradle index b9802566b6c2f..3252c37740da5 100644 --- a/x-pack/plugin/ent-search/build.gradle +++ b/x-pack/plugin/ent-search/build.gradle @@ -25,8 +25,6 @@ dependencies { implementation "com.fasterxml.jackson.core:jackson-core:${versions.jackson}" implementation "com.fasterxml.jackson.core:jackson-annotations:${versions.jackson}" implementation "com.fasterxml.jackson.core:jackson-databind:${versions.jackson}" - implementation "org.slf4j:slf4j-api:${versions.slf4j}" - implementation "org.apache.logging.log4j:log4j-slf4j-impl:${versions.log4j}" implementation "com.networknt:json-schema-validator:${versions.networknt_json_schema_validator}" testImplementation(testArtifact(project(xpackModule('core')))) @@ -63,13 +61,6 @@ tasks.named("dependencyLicenses") { mapping from: /jackson.*/, to: 'jackson' } -tasks.named("thirdPartyAudit") { - ignoreMissingClasses( - // [missing classes] SLF4j includes an optional class that depends on an extension class (!) - 'org.slf4j.ext.EventData' - ) -} - tasks.named("yamlRestTest") { usesDefaultDistribution("uses the xpack/usage api") } diff --git a/x-pack/plugin/ent-search/licenses/slf4j-api-LICENSE.txt b/x-pack/plugin/ent-search/licenses/slf4j-api-LICENSE.txt deleted file mode 100644 index 52055e61de46f..0000000000000 --- a/x-pack/plugin/ent-search/licenses/slf4j-api-LICENSE.txt +++ /dev/null @@ -1,21 +0,0 @@ -Copyright (c) 2004-2014 QOS.ch -All rights reserved. - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/x-pack/plugin/ent-search/licenses/slf4j-api-NOTICE.txt b/x-pack/plugin/ent-search/licenses/slf4j-api-NOTICE.txt deleted file mode 100644 index e69de29bb2d1d..0000000000000 diff --git a/x-pack/plugin/ent-search/src/main/java/module-info.java b/x-pack/plugin/ent-search/src/main/java/module-info.java index 2acf0654dcdc3..924ebc985838f 100644 --- a/x-pack/plugin/ent-search/src/main/java/module-info.java +++ b/x-pack/plugin/ent-search/src/main/java/module-info.java @@ -11,7 +11,6 @@ requires com.fasterxml.jackson.databind; requires json.schema.validator; requires org.apache.lucene.core; - requires org.slf4j; requires org.elasticsearch.base; requires org.elasticsearch.logging; diff --git a/x-pack/plugin/identity-provider/build.gradle b/x-pack/plugin/identity-provider/build.gradle index 701cd97289d5c..cce2680340c30 100644 --- a/x-pack/plugin/identity-provider/build.gradle +++ b/x-pack/plugin/identity-provider/build.gradle @@ -47,9 +47,8 @@ dependencies { exclude group: 'org.bouncycastle' } - api "org.slf4j:slf4j-api:${versions.slf4j}" - runtimeOnly "org.slf4j:slf4j-nop:${versions.slf4j}" - // runtimeOnly("org.apache.logging.log4j:log4j-slf4j-impl:${versions.log4j}") https://github.com/elastic/elasticsearch/issues/93714 + // provided by x-pack-core + compileOnly "org.slf4j:slf4j-api:${versions.slf4j}" api "org.apache.httpcomponents:httpclient:${versions.httpclient}" api "org.apache.httpcomponents:httpcore:${versions.httpcore}" api "org.apache.httpcomponents:httpasyncclient:${versions.httpasyncclient}" diff --git a/x-pack/plugin/identity-provider/licenses/slf4j-api-NOTICE.txt b/x-pack/plugin/identity-provider/licenses/slf4j-api-NOTICE.txt deleted file mode 100644 index e69de29bb2d1d..0000000000000 diff --git a/x-pack/plugin/identity-provider/licenses/slf4j-nop-LICENSE.txt b/x-pack/plugin/identity-provider/licenses/slf4j-nop-LICENSE.txt deleted file mode 100644 index 508a27283f65f..0000000000000 --- a/x-pack/plugin/identity-provider/licenses/slf4j-nop-LICENSE.txt +++ /dev/null @@ -1,24 +0,0 @@ -Copyright (c) 2004-2007 QOS.ch -All rights reserved. - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - - diff --git a/x-pack/plugin/identity-provider/licenses/slf4j-nop-NOTICE.txt b/x-pack/plugin/identity-provider/licenses/slf4j-nop-NOTICE.txt deleted file mode 100644 index e69de29bb2d1d..0000000000000 diff --git a/x-pack/plugin/security/build.gradle b/x-pack/plugin/security/build.gradle index 2c6dee150b7c2..69ec4539835c8 100644 --- a/x-pack/plugin/security/build.gradle +++ b/x-pack/plugin/security/build.gradle @@ -69,9 +69,9 @@ dependencies { api ( "org.cryptacular:cryptacular:1.2.5") { exclude group: 'org.bouncycastle' } - api "org.slf4j:slf4j-api:${versions.slf4j}" - runtimeOnly "org.slf4j:slf4j-nop:${versions.slf4j}" // workaround for https://github.com/elastic/elasticsearch/issues/93714 - // api "org.apache.logging.log4j:log4j-slf4j-impl:${versions.log4j}" see above + + // provided by x-pack-core + compileOnly "org.slf4j:slf4j-api:${versions.slf4j}" api "org.apache.httpcomponents:httpclient:${versions.httpclient}" api "org.apache.httpcomponents:httpcore:${versions.httpcore}" diff --git a/x-pack/plugin/security/licenses/slf4j-api-LICENSE.txt b/x-pack/plugin/security/licenses/slf4j-api-LICENSE.txt deleted file mode 100644 index c8e72c2cd4738..0000000000000 --- a/x-pack/plugin/security/licenses/slf4j-api-LICENSE.txt +++ /dev/null @@ -1,21 +0,0 @@ - Copyright (c) 2004-2017 QOS.ch - All rights reserved. - - Permission is hereby granted, free of charge, to any person obtaining - a copy of this software and associated documentation files (the - "Software"), to deal in the Software without restriction, including - without limitation the rights to use, copy, modify, merge, publish, - distribute, sublicense, and/or sell copies of the Software, and to - permit persons to whom the Software is furnished to do so, subject to - the following conditions: - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE - LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION - OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION - WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/x-pack/plugin/security/licenses/slf4j-api-NOTICE.txt b/x-pack/plugin/security/licenses/slf4j-api-NOTICE.txt deleted file mode 100644 index e69de29bb2d1d..0000000000000 diff --git a/x-pack/plugin/security/licenses/slf4j-nop-LICENSE.txt b/x-pack/plugin/security/licenses/slf4j-nop-LICENSE.txt deleted file mode 100644 index 508a27283f65f..0000000000000 --- a/x-pack/plugin/security/licenses/slf4j-nop-LICENSE.txt +++ /dev/null @@ -1,24 +0,0 @@ -Copyright (c) 2004-2007 QOS.ch -All rights reserved. - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - - diff --git a/x-pack/plugin/security/licenses/slf4j-nop-NOTICE.txt b/x-pack/plugin/security/licenses/slf4j-nop-NOTICE.txt deleted file mode 100644 index e69de29bb2d1d..0000000000000 diff --git a/x-pack/plugin/vector-tile/build.gradle b/x-pack/plugin/vector-tile/build.gradle index a8fa43aeb4db6..c59813a0849fc 100644 --- a/x-pack/plugin/vector-tile/build.gradle +++ b/x-pack/plugin/vector-tile/build.gradle @@ -30,8 +30,6 @@ dependencies { api "com.wdtinc:mapbox-vector-tile:3.1.0" api "com.google.protobuf:protobuf-java:${versions.protobuf}" runtimeOnly("org.slf4j:slf4j-api:${versions.slf4j}") - runtimeOnly "org.slf4j:slf4j-nop:${versions.slf4j}" - // runtimeOnly("org.apache.logging.log4j:log4j-slf4j-impl:${versions.log4j}") https://github.com/elastic/elasticsearch/issues/93714 javaRestTestImplementation("com.wdtinc:mapbox-vector-tile:3.1.0") javaRestTestImplementation("com.google.protobuf:protobuf-java:${versions.protobuf}") diff --git a/x-pack/plugin/vector-tile/licenses/slf4j-api-LICENSE.txt b/x-pack/plugin/vector-tile/licenses/slf4j-api-LICENSE.txt deleted file mode 100644 index c8e72c2cd4738..0000000000000 --- a/x-pack/plugin/vector-tile/licenses/slf4j-api-LICENSE.txt +++ /dev/null @@ -1,21 +0,0 @@ - Copyright (c) 2004-2017 QOS.ch - All rights reserved. - - Permission is hereby granted, free of charge, to any person obtaining - a copy of this software and associated documentation files (the - "Software"), to deal in the Software without restriction, including - without limitation the rights to use, copy, modify, merge, publish, - distribute, sublicense, and/or sell copies of the Software, and to - permit persons to whom the Software is furnished to do so, subject to - the following conditions: - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE - LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION - OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION - WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/x-pack/plugin/vector-tile/licenses/slf4j-api-NOTICE.txt b/x-pack/plugin/vector-tile/licenses/slf4j-api-NOTICE.txt deleted file mode 100644 index e69de29bb2d1d..0000000000000 diff --git a/x-pack/plugin/vector-tile/licenses/slf4j-nop-LICENSE.txt b/x-pack/plugin/vector-tile/licenses/slf4j-nop-LICENSE.txt deleted file mode 100644 index 508a27283f65f..0000000000000 --- a/x-pack/plugin/vector-tile/licenses/slf4j-nop-LICENSE.txt +++ /dev/null @@ -1,24 +0,0 @@ -Copyright (c) 2004-2007 QOS.ch -All rights reserved. - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - - diff --git a/x-pack/plugin/vector-tile/licenses/slf4j-nop-NOTICE.txt b/x-pack/plugin/vector-tile/licenses/slf4j-nop-NOTICE.txt deleted file mode 100644 index e69de29bb2d1d..0000000000000