hop icon indicating copy to clipboard operation
hop copied to clipboard

[Bug]: HTTP client transform fails in case of proxy

Open enricomariam42 opened this issue 2 years ago • 5 comments

Apache Hop version?

2.6.0

Java version?

java.version=11.0.9.1

Operating system

Linux

What happened?

Using HTTP client transform through an http proxy results in a "Server Hangup" response (502) Disabling preemptive authentication by editing the code and transform works.

Issue Priority

Priority: 3

Issue Component

Component: Transforms

enricomariam42 avatar Nov 21 '23 14:11 enricomariam42

Is there any solution to this? I'm not sure what is meant by "Disabling preemptive authentication".

marcushenningsen avatar Sep 16 '24 11:09 marcushenningsen

Could you try one of our latest builds. Could be solved by #4195

You can fetch a current build here these do require Java 17

hansva avatar Sep 16 '24 11:09 hansva

I just tried the latest snapshot, but the problem persists.

marcushenningsen avatar Sep 16 '24 12:09 marcushenningsen

Ok this post explains preemptive vs non-preemptive authentication.

https://stackoverflow.com/questions/7482523/why-preemptive-authentication

The solution will be to add a checkbox to enable/disable that feature flag.

hansva avatar Sep 16 '24 13:09 hansva

To be clear, which lines did you disable to get it working? Because I see code labeled as Preemtive authentication: https://github.com/apache/hop/blob/5e0ecaa4b33a18db0542aa94dc66d52876d6beb3/plugins/transforms/http/src/main/java/org/apache/hop/pipeline/transforms/http/Http.java#L154-L158

But disabling that is the same as removing the proxy

hansva avatar Sep 18 '24 11:09 hansva