Skip to content

Switch to httpclient5 - #145

Open
BertScholten wants to merge 3 commits into
aerius:mainfrom
BertScholten:switch_to_httpclient5
Open

BertScholten wants to merge 3 commits into
aerius:mainfrom
BertScholten:switch_to_httpclient5

Conversation

@BertScholten

Copy link
Copy Markdown
Member

httpclient5 is managed by spring-boot-dependencies from the root-pom, so this saves us maintaining it. Also no longer using it as a dependency in the client library, as it doesn't use it for anything at the moment.

Moved the dependency from taskamanger-client (which didn't seem to use it) to taskmanager itself (which uses it for the rabbitmq monitor).
Works slightly different in httpclient5 it seems. The authcache is still there, but it doesn't register properly.
This is based on https://github.com/apache/httpcomponents-client/blob/master/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientPreemptiveBasicAuthentication.java.
Guess this is slightly less secure if taskmanager doesn't use internal network? As in, it could send the credentials over, even if not asked for it?
@BertScholten
BertScholten requested a review from Hilbrand December 4, 2026 13:48
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.

1 participant