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

4.x: Helidon Webclient (4.0.10) is not routing the requests through proxy configured using Proxy Builder. #9022 #9023

Merged
merged 4 commits into from
Jul 31, 2024

Conversation

jbescos
Copy link
Member

@jbescos jbescos commented Jul 23, 2024

Description

#9022

It will do HTTP CONNECT if any of these is true:

  • You explicitly set in a flag.
  • It is TLS
  • It uses proxy authentication

Documentation

None

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jul 23, 2024
@jbescos jbescos self-assigned this Jul 23, 2024
@jbescos jbescos force-pushed the issue9022 branch 3 times, most recently from 8345c2d to af72d9e Compare July 23, 2024 11:34
…roxy configured using Proxy Builder. helidon-io#9022

Signed-off-by: Jorge Bescos Gascon <[email protected]>
klustria
klustria previously approved these changes Jul 24, 2024
Copy link
Member

@klustria klustria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM already, so I'm approving. Also let's run this through @tomas-langer if he has any further comments

@@ -587,6 +589,7 @@ public static class Builder implements io.helidon.common.Builder<Builder, Proxy>
private int port = 80;
private String username;
private char[] password;
private boolean httpConnect = true;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe should default to false?

response.close();
throw new IllegalStateException("Proxy sent wrong HTTP response code: " + response.status());
if (proxy.httpConnect) {
HttpClientRequest request = webClient.method(Method.CONNECT)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this block for http only? If not, do we also need to also check if the request is http?

Signed-off-by: Jorge Bescos Gascon <[email protected]>
Signed-off-by: Jorge Bescos Gascon <[email protected]>
klustria
klustria previously approved these changes Jul 30, 2024
Copy link
Member

@klustria klustria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: Jorge Bescos Gascon <[email protected]>
Copy link
Member

@klustria klustria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@klustria klustria requested a review from tomas-langer July 31, 2024 05:51
@jbescos jbescos merged commit 45f46c8 into helidon-io:main Jul 31, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants