-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[java] Handle redirects inside the JdkHttpClient #11816
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
Conversation
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.
Thank you, left some comments.
java/src/org/openqa/selenium/remote/http/jdk/JdkHttpClient.java
Outdated
Show resolved
Hide resolved
java/src/org/openqa/selenium/remote/http/jdk/JdkHttpClient.java
Outdated
Show resolved
Hide resolved
fyi, a mysterious @joerg1985 got a shout out in the State of the Union address at the Selenium Conference last week... |
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.
Thank you, @joerg1985!
Handle redirects inside the JdkHttpClient Co-authored-by: Diego Molina <diemol@users.noreply.github.com>
Reason: mobile web tests (iPad) fail on SauceLabs. Assumption: regression issue was introduced in Selenium 4.9.0 (possible root cause: SeleniumHQ/selenium#11816)
Reason: mobile web tests (iPad) fail on SauceLabs. Assumption: regression issue was introduced in Selenium 4.9.0 (possible root cause: SeleniumHQ/selenium#11816)
Reason: mobile web tests (iPad) fail on SauceLabs. Assumption: regression issue was introduced in Selenium 4.9.0 (possible root cause: SeleniumHQ/selenium#11816)
This commit causes our several of our Saucelabs based builds to fail when going from Selenium 4.8.3 to 4.9.0. Running with 4.9.0 + this reverted makes everything work again. The errors are timeouts creating drivers or |
Can you create an issue about this, please? |
This PR is related to #11798 UnreachableBrowserException caused by "connection closed locally" exactly 3 minutes after session start when using JDK HttpClient.
Description
There seems to be a bug in the JDK related to redirects, see https://bugs.openjdk.org/browse/JDK-8304701
This PR will disable the redirects of the JDK HttpClient and add a custom handling of redirects.
Additionally this PR will:
I am not sure if this will fix the original issue described in #11798, so there is additional testing needed.
Types of changes
Checklist