Skip to content

Validate httpcore 5.4 compatibility #769

Closed
strangelookingnerd wants to merge 1 commit intoapache:5.5.xfrom
strangelookingnerd:patch-1
Closed

Validate httpcore 5.4 compatibility #769
strangelookingnerd wants to merge 1 commit intoapache:5.5.xfrom
strangelookingnerd:patch-1

Conversation

@strangelookingnerd
Copy link
Copy Markdown
Contributor

Hey there, I noticed some issues when upgrading to the latest httpcore in jenkinsci/apache-httpcomponents-client-5-api-plugin#107

I am not entirely sure what the compatibility between client and core is supposed to be (or why they are separate packages with separate release cycles…). I could not find any documentation on that matter either.

Just wanted to raise awareness on that matter and offer my help to work on a solution.

@ok2c
Copy link
Copy Markdown
Member

ok2c commented Dec 14, 2025

@strangelookingnerd What is the reason you want the stable 5.5.x branch upgraded to different minor version of HttpCore?

@garydgregory
Copy link
Copy Markdown
Member

Hello @ok2c
Do we document this expectation?
I expect that latest to client and core within major release lines to work hand in hand. For example

  • The latest 4.x client and code should work together.
  • The latest 5.x client and core should work together.

@ok2c
Copy link
Copy Markdown
Member

ok2c commented Dec 14, 2025

I expect that latest to client and core within major release lines to work hand in hand

@garydgregory They do.

@strangelookingnerd
Copy link
Copy Markdown
Contributor Author

I expect that latest to client and core within major release lines to work hand in hand

@garydgregory They do.

To me it seems that the latest released version of client (5.5.1) is not compatible with the latest released version of core (5.4).

I could not find any documentation on this being the case. Many projects that will try to keep all their dependencies updated will also run into the same issue.

Since the version numbers are diverged, it is also not implied by the major version used.

Not arguing that this isn't totally fine as there is nothing stating otherwise. Still it would be nice to have that information documented somewhere or provide an alternative way to help users understand the compatibility between the libraries. E.g. by merging the projects and develop/release them together or syncing the version numbers.

As I said, I'd be happy to help. Just need to know what the expectations are.

@ok2c
Copy link
Copy Markdown
Member

ok2c commented Dec 14, 2025

To me it seems that the latest released version of client (5.5.1) is not compatible with the latest released version of core (5.4).

@strangelookingnerd The latest released version of HttpClient is 5.6-alpha1 and am not aware of any incompatibilities with HttpCore 5.4 given it is based on HttpCore 5.4.x branch.

What are specific incompatibilities you are referring to?

@strangelookingnerd
Copy link
Copy Markdown
Contributor Author

To me it seems that the latest released version of client (5.5.1) is not compatible with the latest released version of core (5.4).

@strangelookingnerd The latest released version of HttpClient is 5.6-alpha1 and am not aware of any incompatibilities with HttpCore 5.4 given it is based on HttpCore 5.4.x branch.

What are specific incompatibilities you are referring to?

Okay, I should have been more specific. The latest released non-alpha versions are not compatible.

@ok2c
Copy link
Copy Markdown
Member

ok2c commented Dec 14, 2025

@strangelookingnerd That alpha will become GA next week. But that does not matter. What specific incompatibilities are you referring to?

@ok2c
Copy link
Copy Markdown
Member

ok2c commented Dec 14, 2025

@strangelookingnerd I found the problem. Please raise a JIRA for the defect.

[ERROR] /home/oleg/src/apache.org/httpcomponents/httpclient/httpclient5/src/main/java/org/apache/hc/client5/http/impl/io/DefaultHttpClientConnectionOperator.java:[61,29] error: cannot find symbol
[ERROR]   symbol:   class SocketSupport
[ERROR]   location: package org.apache.hc.core5.io

@strangelookingnerd
Copy link
Copy Markdown
Contributor Author

@ok2c ok2c closed this Dec 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants