[jdk11u-dev] Integrated: 8232625: HttpClient redirect policy should be more conservative
Antonio Vieiro
duke at openjdk.org
Thu May 8 22:06:00 UTC 2025
On Wed, 7 May 2025 10:58:14 GMT, Antonio Vieiro <duke at openjdk.org> wrote:
> Clean backport of [JDK-8232625](https://bugs.openjdk.org/browse/JDK-8232625) that improves HttpClient redirection by dropping the body when the HTTP request method changes.
>
> Tested on linux with tier1 tests and the following:
>
>
> ==============================
> Test summary
> ==============================
> TEST TOTAL PASS FAIL ERROR
> jtreg:test/jdk/java/net/httpclient 204 204 0 0
> ==============================
> TEST SUCCESS
This pull request has now been integrated.
Changeset: bfc3bebd
Author: Antonio Vieiro <avieirov at redhat.com>
Committer: Andrew John Hughes <andrew at openjdk.org>
URL: https://git.openjdk.org/jdk11u-dev/commit/bfc3bebd26fa21716ac6461a016bda5548486978
Stats: 514 lines in 5 files changed: 502 ins; 0 del; 12 mod
8232625: HttpClient redirect policy should be more conservative
When enabled, HttpClient redirect is fixed to drop the body when the request method is changed, and to relay any redirection code it does not understand to the caller.
Reviewed-by: andrew
Backport-of: b3477399d01c81dfe87e2041926a0244e616c18f
-------------
PR: https://git.openjdk.org/jdk11u-dev/pull/3030
More information about the jdk-updates-dev
mailing list