-
Notifications
You must be signed in to change notification settings - Fork 175
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
chore: use SDK http client instead of a separate http-client dependency #16897
Conversation
Looks like vaadin-dev-server is expecting to have the http-client dependency via vaadin-server still. That should also be converted to use the JDK version... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor changes.
The hard-coded timeout settings are a bit opinionated.
It would be good to make them configurable.
Maybe trying to get the value from system properties, otherwise fallback to default?
flow-server/src/main/java/com/vaadin/flow/server/frontend/installer/DefaultFileDownloader.java
Show resolved
Hide resolved
flow-server/src/main/java/com/vaadin/flow/server/frontend/installer/DefaultFileDownloader.java
Outdated
Show resolved
Hide resolved
flow-server/src/main/java/com/vaadin/flow/server/frontend/installer/DefaultFileDownloader.java
Show resolved
Hide resolved
flow-server/src/main/java/com/vaadin/flow/server/frontend/installer/DefaultFileDownloader.java
Show resolved
Hide resolved
vaadin-dev-server/src/main/java/com/vaadin/base/devserver/stats/StatisticsSender.java
Outdated
Show resolved
Hide resolved
vaadin-dev-server/src/main/java/com/vaadin/base/devserver/stats/StatisticsSender.java
Show resolved
Hide resolved
@mcollovati timeouts were opinionated indeed, copied from some tutorial 😂 I removed them now, going with defaults would be fine I guess? Or were those configurable in the past 🤔 |
I was thinking they were configurable through system properties, as the client builder had |
👌 That was done in 9becd05 |
I'm testing with proxy authentication, but the download fails. |
Please add some proxy tests to the project :) |
It seems like that basic authentication for https proxy has been deactivated since Java 8u111 (https://www.oracle.com/java/technologies/javase/8u111-relnotes.html) Setting the |
And this could be interesting to set up tests with proxy: https://github.com/pan-dora/jdk11-httpclient-tests/blob/master/httpclient/src/test/java/net/httpclient/ProxyAuthTest.java |
keep in mind this old security fix :) apache/httpcomponents-client@a572756 |
Would be great if we'd know if and how developers use proxies 😬 Building extensive integration tests for this is probably not worth the investement but some smaller smoke test would be great. |
Couldn't you guys try to get some information about proxy usage based on your usage statistics features? Those could be added til 24.1 and you have those information hopefully in the next months before this hits the road with 24.2/3 |
I propose not adding custom code for handling proxy authentication, but instead updating the documentation at https://vaadin.com/docs/latest/configuration/development-mode/node-js#proxy-settings-for-downloading-the-front-end-toolchain to suggest setting the |
Created vaadin/docs#2475 and #16966 |
Kudos, SonarCloud Quality Gate passed! |
Would it be feasible to backport this to 24.1? Hilla native compilation is broken by httpclient dependency that brings |
…cy (#16897) (#17656) Closes #14538 Co-authored-by: Matti Tahvonen <[email protected]>
Less dependencies that might cause conflicts in user projects
Fixes #14538
Type of change
Checklist
Additional for
Feature
type of change