Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update http client version #87491

Merged
merged 10 commits into from
Jun 28, 2022
Merged

Conversation

tvernum
Copy link
Contributor

@tvernum tvernum commented Jun 8, 2022

Moves a few Apache HTTP client dependencies to their latest version

  • httpclient -> 4.5.13
  • httpasyncclient -> 4.1.5
  • httpcore -> 4.4.13

Moves a few Apache HTTP client dependencies to their latest version

- httpclient -> 4.5.13
- httpasyncclient -> 4.1.5
- httpcore -> 4.4.13
@tvernum
Copy link
Contributor Author

tvernum commented Jun 8, 2022

@dakrone I'm looking at upgrading httpclient / httpcore to the latest available version

The move to httpcore 4.4.13 has changed the PublicSuffixMatcher which means that RegisteredDomainProcessorTests fails because googleapis.com now has a registered domain (googleapis.com) but in the older version it did not.

Is that something that you would be concerned about? Can we safely just change the test to reflect the new behaviour or do we need to do something more?

@dakrone
Copy link
Member

dakrone commented Jun 8, 2022

Is that something that you would be concerned about? Can we safely just change the test to reflect the new behaviour or do we need to do something more?

I looked at this, I think we can change the test to reflect the new domain list. I don't think this will affect anything otherwise.

tvernum added 2 commits June 15, 2022 19:32
Since apache/httpcomponents-client#203
httpclient handles private suffix rules differently.

This change updates RegisteredDomainProcessorTests to reflect those
new rules
@tvernum
Copy link
Contributor Author

tvernum commented Jun 16, 2022

@dakrone It looks like the change is going to be reasonably extensive, and will undo most of the tests that were added in #82898

Since apache/httpcomponents-client#203 PRIVATE domain suffixes are handled differently,

I've pushed 132680c that makes the test pass. Can you confirm that you're happy to have that scope of change in a minor?

@dakrone
Copy link
Member

dakrone commented Jun 16, 2022

That seems reasonable to me, but maybe @justincr-elastic can take a look since he did the original work on the test?

@tvernum tvernum marked this pull request as ready for review June 20, 2022 02:38
@tvernum
Copy link
Contributor Author

tvernum commented Jun 20, 2022

@elasticmachine update branch

@tvernum tvernum added :Core/Infra/Core Core issues without another label :Data Management/Other labels Jun 23, 2022
@elasticmachine elasticmachine added Team:Core/Infra Meta label for core/infra team Team:Data Management Meta label for data/management team labels Jun 23, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

@tvernum tvernum added >enhancement and removed Team:Core/Infra Meta label for core/infra team Team:Data Management Meta label for data/management team labels Jun 23, 2022
@tvernum
Copy link
Contributor Author

tvernum commented Jun 23, 2022

@elasticmachine update branch

@justincr-elastic
Copy link
Contributor

The tests were added to confirm googleapis.com was an eTLD, and not the same as a DNS address. If the updated HTTP Client version includes updates of its bundled list of eTLDs, then adjusting the tests makes sense. It may have side effects on https://www.elastic.co/guide/en/elasticsearch/reference/current/registered-domain-processor.html, but that is expected.

@justincr-elastic
Copy link
Contributor

There was no bug fix related to adding those tests. The tests were added to confirm how the library is parsing googleapis.com as an eTLD. If the library is paring googleapis.com differently, it is OK to update the tests to reflect that change and make them pass. The tests confirm how it works, and can be used as a reference when questions come up for how the HTTP Client library is parsing eTLDs like googleapis.com.

Copy link
Contributor

@justincr-elastic justincr-elastic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@dakrone dakrone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM also

@tvernum
Copy link
Contributor Author

tvernum commented Jun 27, 2022

@elasticmachine update branch

@tvernum tvernum closed this Jun 28, 2022
@tvernum tvernum reopened this Jun 28, 2022
@tvernum
Copy link
Contributor Author

tvernum commented Jun 28, 2022

Grrr, clicked the wrong button :(

@tvernum tvernum added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Jun 28, 2022
@elasticsearchmachine
Copy link
Collaborator

Hi @tvernum, I've created a changelog YAML for you.

@elasticsearchmachine elasticsearchmachine merged commit 6078fc3 into elastic:master Jun 28, 2022
@tvernum tvernum deleted the httpclient-4-5-13 branch June 28, 2022 10:10
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!) :Core/Infra/Core Core issues without another label >enhancement v8.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants