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

Explore removal of Apache's httpclient dependency from flow-server #14538

Closed
knoobie opened this issue Sep 15, 2022 · 1 comment · Fixed by #16897
Closed

Explore removal of Apache's httpclient dependency from flow-server #14538

knoobie opened this issue Sep 15, 2022 · 1 comment · Fixed by #16897

Comments

@knoobie
Copy link
Contributor

knoobie commented Sep 15, 2022

Describe your motivation

Currently vaadin-flow (flow-server) has a dependency to the httpclient (4.5.13) from Apache. The only class that needs it in flow-server DefaultFileDownloader which is only used on build / development time.

Describe the solution you'd like

Remove the dependency to Apache's httpclient by e.g. using Java 9's HttpClient or by moving of the whole class and its callers to the dedicated maven / gradle base plugin to reduce the dependency on runtime / production mode.

@mstahv
Copy link
Member

mstahv commented May 26, 2023

@Artur-, @caalador check the PR I drafted as Friday fun. Not sure if all the hacks ("all bytes downloaded etc") are still needed with the newer JDK httpclient. Also I have no idea why there is this username/password thingie in this class. Obsolete legacy from the frontend-maven-plugin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants