Skip to content

Commit 2aeecfd

Browse files
authored
[7.17] Manual backport of 103944 (#104016)
* Manual backport of 103944 * copy RegisteredDomainProcessorTests#testBasic from main
1 parent 77bf12f commit 2aeecfd

File tree

22 files changed

+49
-25
lines changed

22 files changed

+49
-25
lines changed

build-tools-internal/version.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ bouncycastle=1.77
3030
randomizedrunner = 2.8.0
3131
junit = 4.13.2
3232
junit5 = 5.7.1
33-
httpclient = 4.5.10
33+
httpclient = 4.5.14
3434
httpcore = 4.4.12
3535
httpasyncclient = 4.1.4
3636
commonslogging = 1.1.3

client/rest/licenses/httpclient-4.5.10.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1194890e6f56ec29177673f2f12d0b8e627dec98

client/sniffer/licenses/httpclient-4.5.10.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1194890e6f56ec29177673f2f12d0b8e627dec98

gradle/build.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ docker-compose = "com.avast.gradle:gradle-docker-compose-plugin:0.17.5"
1818
forbiddenApis = "de.thetaphi:forbiddenapis:3.5.1"
1919
hamcrest = "org.hamcrest:hamcrest:2.1"
2020
httpcore = "org.apache.httpcomponents:httpcore:4.4.12"
21-
httpclient = "org.apache.httpcomponents:httpclient:4.5.10"
21+
httpclient = "org.apache.httpcomponents:httpclient:4.5.14"
2222
idea-ext = "gradle.plugin.org.jetbrains.gradle.plugin.idea-ext:gradle-idea-ext:1.1.4"
2323
json-schema-validator = "com.networknt:json-schema-validator:1.0.72"
2424
json-assert = "org.skyscreamer:jsonassert:1.5.0"

gradle/verification-metadata.xml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2592,34 +2592,34 @@
25922592
<sha256 value="5d45b7904857c3e4ad36b3bcc57be2d2c5f308c69b5f6a58bd86aa7d48a25ef6" origin="Generated by Gradle"/>
25932593
</artifact>
25942594
</component>
2595-
<component group="org.apache.httpcomponents" name="fluent-hc" version="4.5.10">
2596-
<artifact name="fluent-hc-4.5.10.jar">
2597-
<sha256 value="f9b60d7a2a9a6944e8f5722c486933f6118dce474c4d8bdc0330f30c7801723a" origin="Generated by Gradle"/>
2595+
<component group="org.apache.httpcomponents" name="fluent-hc" version="4.5.14">
2596+
<artifact name="fluent-hc-4.5.14.jar">
2597+
<sha256 value="6916043081fd7b0acb3e50a12a0e82187063d7a6dfed3d2fb2f3296b580ab0f8" origin="Generated by Gradle"/>
25982598
</artifact>
25992599
</component>
26002600
<component group="org.apache.httpcomponents" name="httpasyncclient" version="4.1.4">
26012601
<artifact name="httpasyncclient-4.1.4.jar">
26022602
<sha256 value="50e981a8e567a16ebdad104605b156540a863459fa127b8ba647f310dfc83ef8" origin="Generated by Gradle"/>
26032603
</artifact>
26042604
</component>
2605-
<component group="org.apache.httpcomponents" name="httpclient" version="4.5.10">
2606-
<artifact name="httpclient-4.5.10.jar">
2607-
<sha256 value="38b9f16f504928e4db736a433b9cd10968d9ec8d6f5d0e61a64889a689172134" origin="Generated by Gradle"/>
2608-
</artifact>
2609-
</component>
26102605
<component group="org.apache.httpcomponents" name="httpclient" version="4.5.13">
26112606
<artifact name="httpclient-4.5.13.jar">
26122607
<sha256 value="6fe9026a566c6a5001608cf3fc32196641f6c1e5e1986d1037ccdbd5f31ef743" origin="Generated by Gradle"/>
26132608
</artifact>
26142609
</component>
2610+
<component group="org.apache.httpcomponents" name="httpclient" version="4.5.14">
2611+
<artifact name="httpclient-4.5.14.jar">
2612+
<sha256 value="c8bc7e1c51a6d4ce72f40d2ebbabf1c4b68bfe76e732104b04381b493478e9d6" origin="Generated by Gradle"/>
2613+
</artifact>
2614+
</component>
26152615
<component group="org.apache.httpcomponents" name="httpclient" version="4.5.2">
26162616
<artifact name="httpclient-4.5.2.jar">
26172617
<sha256 value="0dffc621400d6c632f55787d996b8aeca36b30746a716e079a985f24d8074057" origin="Generated by Gradle"/>
26182618
</artifact>
26192619
</component>
2620-
<component group="org.apache.httpcomponents" name="httpclient-cache" version="4.5.10">
2621-
<artifact name="httpclient-cache-4.5.10.jar">
2622-
<sha256 value="beff09f209510332d30f9444785a06755da2686d92338e37581cd62c5a2844bf" origin="Generated by Gradle"/>
2620+
<component group="org.apache.httpcomponents" name="httpclient-cache" version="4.5.14">
2621+
<artifact name="httpclient-cache-4.5.14.jar">
2622+
<sha256 value="5324d2cbc2d311c9f91b82bcbc746ec2a29f1f5b744395a50ff3afb873db1cee" origin="Generated by Gradle"/>
26232623
</artifact>
26242624
</component>
26252625
<component group="org.apache.httpcomponents" name="httpcore" version="4.4.12">
@@ -2632,6 +2632,11 @@
26322632
<sha256 value="e06e89d40943245fcfa39ec537cdbfce3762aecde8f9c597780d2b00c2b43424" origin="Generated by Gradle"/>
26332633
</artifact>
26342634
</component>
2635+
<component group="org.apache.httpcomponents" name="httpcore" version="4.4.16">
2636+
<artifact name="httpcore-4.4.16.jar">
2637+
<sha256 value="6c9b3dd142a09dc468e23ad39aad6f75a0f2b85125104469f026e52a474e464f" origin="Generated by Gradle"/>
2638+
</artifact>
2639+
</component>
26352640
<component group="org.apache.httpcomponents" name="httpcore" version="4.4.4">
26362641
<artifact name="httpcore-4.4.4.jar">
26372642
<sha256 value="f7bc09dc8a7003822d109634ffd3845d579d12e725ae54673e323a7ce7f5e325" origin="Generated by Gradle"/>

modules/ingest-common/licenses/httpclient-4.5.10.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1194890e6f56ec29177673f2f12d0b8e627dec98

modules/ingest-common/src/test/java/org/elasticsearch/ingest/common/RegisteredDomainProcessorTests.java

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,33 @@ public void testBasic() throws Exception {
3333
testRegisteredDomainProcessor(buildEvent("."), null, null, null, null);
3434
testRegisteredDomainProcessor(buildEvent("$"), null, null, null, null);
3535
testRegisteredDomainProcessor(buildEvent("foo.bar.baz"), null, null, null, null);
36+
testRegisteredDomainProcessor(buildEvent("www.books.amazon.co.uk"), "www.books.amazon.co.uk", "amazon.co.uk", "co.uk", "www.books");
37+
// Verify "com" is returned as the eTLD, for that FQDN or subdomain
38+
testRegisteredDomainProcessor(buildEvent("com"), "com", null, "com", null);
39+
testRegisteredDomainProcessor(buildEvent("example.com"), "example.com", "example.com", "com", null);
40+
testRegisteredDomainProcessor(buildEvent("googleapis.com"), "googleapis.com", "googleapis.com", "com", null);
41+
testRegisteredDomainProcessor(
42+
buildEvent("content-autofill.googleapis.com"),
43+
"content-autofill.googleapis.com",
44+
"googleapis.com",
45+
"com",
46+
"content-autofill"
47+
);
48+
// Verify "ssl.fastly.net" is returned as the eTLD, for that FQDN or subdomain
49+
testRegisteredDomainProcessor(
50+
buildEvent("global.ssl.fastly.net"),
51+
"global.ssl.fastly.net",
52+
"global.ssl.fastly.net",
53+
"ssl.fastly.net",
54+
null
55+
);
3656
testRegisteredDomainProcessor(
3757
buildEvent("1.www.global.ssl.fastly.net"),
3858
"1.www.global.ssl.fastly.net",
39-
"www.global.ssl.fastly.net",
4059
"global.ssl.fastly.net",
41-
"1"
60+
"ssl.fastly.net",
61+
"1.www"
4262
);
43-
testRegisteredDomainProcessor(buildEvent("www.books.amazon.co.uk"), "www.books.amazon.co.uk", "amazon.co.uk", "co.uk", "www.books");
4463
}
4564

4665
public void testUseRoot() throws Exception {

0 commit comments

Comments
 (0)