← Winnitude! Search  ·  Reader Mode (2006 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 74 LINKS

Remove exclusion and fix httpclient5 compatibility by Sineaggi · Pull Request #2294 · docker-java/docker-java

Repository navigation

Remove exclusion and fix httpclient5 compatibility - #2294


Merged
eddumelendez merged 2 commits into docker-java:main from Sineaggi:remove-exclusion Feb 26, 2024
Merged

Remove exclusion and fix httpclient5 compatibility #2294 eddumelendez merged 2 commits into docker-java:main from Sineaggi:remove-exclusion

Conversation

Sineaggi commented Jan 10, 2024 · edited Loading



Copy link Copy Markdown
Contributor

With the exclusion as-is, newer versions of apache httpclient fail with ClassNotFoundError.

The main fix here is to avoid subclassing the PlainConnectionSocketFactory, and instead implement the ConnectionSocketFactory interfact directly, delegating to PlainConnectionSocketFactory.INSTANCE where necessary.

Fixes #2290

Sineaggi changed the title Remove exclusion Remove exclusion and fix httpclient5 compatibility Jan 11, 2024 Sineaggi force-pushed the remove-exclusion branch from 847b3b1 to 98d30c3
Compare
January 11, 2024 21:59 Sineaggi marked this pull request as ready for review January 11, 2024 22:13 Sineaggi requested a review from a team as a code owner January 11, 2024 22:13 Sineaggi mentioned this pull request Jan 11, 2024 connect docker has error #2290 Closed strangelookingnerd mentioned this pull request Jan 16, 2024 Update org.apache.httpcomponents.client5:httpclient5 to >= 5.3.1 #2262 Closed Sineaggi added 2 commits February 12, 2024 09:39 Remove exclusion 3385388 Handle upstream httpclient changes gracefully 3860ea8 Sineaggi force-pushed the remove-exclusion branch from 98d30c3 to 3860ea8
Compare
February 12, 2024 16:39

Sineaggi commented Feb 12, 2024



Copy link Copy Markdown
Contributor

Author

Rebased, all checks are green.

eddumelendez commented Feb 26, 2024



Copy link Copy Markdown
Member

The main fix here is to avoid subclassing the PlainConnectionSocketFactory, and instead implement the ConnectionSocketFactory interfact directly, delegating to PlainConnectionSocketFactory.INSTANCE where necessary.

Can you elaborate more on this, please?

twarner-sofi commented Feb 26, 2024



Copy link Copy Markdown

@eddumelendez According to the maintainers of apache http, PlainConnectionSocketFactory is not meant to be directly subclassed, and they make no API stability guarantees when doing so. See: apache/httpcomponents-client#535 (comment)

eddumelendez commented Feb 26, 2024



Copy link Copy Markdown
Member

Thanks @twarner-sofi ! useful info 👍🏽

eddumelendez added this to the next milestone Feb 26, 2024 eddumelendez added the type/bug label Feb 26, 2024 eddumelendez approved these changes Feb 26, 2024
View reviewed changes
eddumelendez merged commit 3514b3b into docker-java : main Feb 26, 2024

eddumelendez commented Feb 26, 2024



Copy link Copy Markdown
Member

Thanks for your contribution, @Sineaggi !

This was referenced Feb 26, 2024 Remove httpcore5-h2 exclusion #2185 Closed core5 HttpVersionPolicy NoClassDefFoundError #2183 Closed Sineaggi deleted the remove-exclusion branch February 26, 2024 19:20 Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment

Labels

type/bug

3 participants