Skip to content

Commit

Permalink
Upgrade to log4j 2.17.0 (elastic#81902)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisHegarty authored Dec 20, 2021
1 parent 3648ecf commit f83e7d3
Show file tree
Hide file tree
Showing 43 changed files with 27 additions and 23 deletions.
2 changes: 1 addition & 1 deletion build-tools-internal/version.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ snakeyaml = 1.26
icu4j = 68.2
supercsv = 2.4.0
# when updating log4j, please update also docs/java-api/index.asciidoc
log4j = 2.11.1
log4j = 2.17.0
slf4j = 1.6.2
ecsLogging = 1.2.0

Expand Down
3 changes: 2 additions & 1 deletion modules/repository-url/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ tasks.named("thirdPartyAudit").configure {
'javax.servlet.ServletContextListener',
'org.apache.avalon.framework.logger.Logger',
'org.apache.log.Hierarchy',
'org.apache.log.Logger'
'org.apache.log.Logger',
'javax.jms.Message'
)
}

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
aaf998968370edf738322fb750fbda118055508b
1 change: 1 addition & 0 deletions plugins/discovery-azure-classic/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ tasks.named("thirdPartyAudit").configure {
'org.apache.avalon.framework.logger.Logger',
'org.apache.log.Hierarchy',
'org.apache.log.Logger',
'javax.jms.Message',
'org.eclipse.persistence.descriptors.ClassDescriptor',
'org.eclipse.persistence.internal.oxm.MappingNodeValue',
'org.eclipse.persistence.internal.oxm.TreeObjectBuilder',
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
aaf998968370edf738322fb750fbda118055508b
1 change: 1 addition & 0 deletions plugins/discovery-ec2/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ tasks.named("thirdPartyAudit").configure {
'org.apache.avalon.framework.logger.Logger',
'org.apache.log.Hierarchy',
'org.apache.log.Logger',
'javax.jms.Message',
'javax.xml.bind.DatatypeConverter',
'javax.xml.bind.JAXBContext'
)
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
aaf998968370edf738322fb750fbda118055508b
1 change: 1 addition & 0 deletions plugins/discovery-gce/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ tasks.named("thirdPartyAudit").configure {
// classes are missing
'com.google.common.base.Splitter',
'com.google.common.collect.Lists',
'javax.jms.Message',
'javax.servlet.ServletContextEvent',
'javax.servlet.ServletContextListener',
'org.apache.avalon.framework.logger.Logger',
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
aaf998968370edf738322fb750fbda118055508b
1 change: 1 addition & 0 deletions plugins/repository-gcs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ tasks.named("thirdPartyAudit").configure {
'org.apache.avalon.framework.logger.Logger',
'org.apache.log.Hierarchy',
'org.apache.log.Logger',
'javax.jms.Message',
// optional apache http client dependencies
'org.apache.http.ConnectionReuseStrategy',
'org.apache.http.Header',
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
aaf998968370edf738322fb750fbda118055508b

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
aaf998968370edf738322fb750fbda118055508b

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1ec25ce0254749c94549ea9c3cea34bd0488c9c6
1 change: 1 addition & 0 deletions plugins/repository-s3/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ tasks.named("check").configure { dependsOn(s3ThirdPartyTest) }
tasks.named("thirdPartyAudit").configure {
ignoreMissingClasses(
// classes are missing
'javax.jms.Message',
'javax.servlet.ServletContextEvent',
'javax.servlet.ServletContextListener',
'org.apache.avalon.framework.logger.Logger',
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
aaf998968370edf738322fb750fbda118055508b
2 changes: 0 additions & 2 deletions server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,9 @@ tasks.named("thirdPartyAudit").configure {
'org.apache.commons.compress.utils.IOUtils',
'org.apache.commons.csv.CSVFormat',
'org.apache.commons.csv.QuoteMode',
'org.apache.kafka.clients.producer.Callback',
'org.apache.kafka.clients.producer.Producer',
'org.apache.kafka.clients.producer.RecordMetadata',
'org.codehaus.stax2.XMLStreamWriter2',
'org.jctools.queues.MessagePassingQueue$Consumer',
'org.jctools.queues.MpscArrayQueue',
'org.osgi.framework.Bundle',
'org.osgi.framework.BundleActivator',
Expand Down
1 change: 0 additions & 1 deletion server/licenses/log4j-api-2.11.1.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions server/licenses/log4j-api-2.17.0.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bbd791e9c8c9421e45337c4fe0a10851c086e36c
1 change: 0 additions & 1 deletion server/licenses/log4j-core-2.11.1.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions server/licenses/log4j-core-2.17.0.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fe6e7a32c1228884b9691a744f953a55d0dd8ead
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,8 @@ protected static void checkStaticState() throws Exception {
statusData.stream().map(status -> status.getMessage().getFormattedMessage()).collect(Collectors.toList()),
anyOf(
emptyCollectionOf(String.class),
contains(startsWith(LOG_4J_MSG_PREFIXES.get(0)), startsWith(LOG_4J_MSG_PREFIXES.get(1)))
contains(startsWith(LOG_4J_MSG_PREFIXES.get(0)), startsWith(LOG_4J_MSG_PREFIXES.get(1))),
contains(startsWith(LOG_4J_MSG_PREFIXES.get(1)))
)
);
} finally {
Expand Down
1 change: 1 addition & 0 deletions x-pack/plugin/core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ tasks.named("thirdPartyAudit").configure {
'org.apache.log.Hierarchy',
'org.apache.log.Logger',
//commons-logging provided dependencies
'javax.jms.Message',
'javax.servlet.ServletContextEvent',
'javax.servlet.ServletContextListener'
)
Expand Down
1 change: 0 additions & 1 deletion x-pack/plugin/core/licenses/log4j-1.2-api-2.11.1.jar.sha1

This file was deleted.

1 change: 1 addition & 0 deletions x-pack/plugin/core/licenses/log4j-1.2-api-2.17.0.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
aaf998968370edf738322fb750fbda118055508b

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1ec25ce0254749c94549ea9c3cea34bd0488c9c6

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1ec25ce0254749c94549ea9c3cea34bd0488c9c6
2 changes: 0 additions & 2 deletions x-pack/plugin/sql/sql-action/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,9 @@ tasks.named("thirdPartyAudit").configure {
'org.apache.commons.compress.utils.IOUtils',
'org.apache.commons.csv.CSVFormat',
'org.apache.commons.csv.QuoteMode',
'org.apache.kafka.clients.producer.Callback',
'org.apache.kafka.clients.producer.Producer',
'org.apache.kafka.clients.producer.RecordMetadata',
'org.codehaus.stax2.XMLStreamWriter2',
'org.jctools.queues.MessagePassingQueue$Consumer',
'org.jctools.queues.MpscArrayQueue',
'org.osgi.framework.Bundle',
'org.osgi.framework.BundleActivator',
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bbd791e9c8c9421e45337c4fe0a10851c086e36c

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fe6e7a32c1228884b9691a744f953a55d0dd8ead

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1ec25ce0254749c94549ea9c3cea34bd0488c9c6

0 comments on commit f83e7d3

Please sign in to comment.