Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

JDK 21 on x86_64 causes truncated responses with Feign + HttpClient (content compression related)

Chiusa
#3,578 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java
Ambito
backend

Direzione di ricerca

Start by reproducing the Feign call on JDK 21 with x86_64 Linux and a gzip-compressed response, then compare it with Windows and with HttpClient content compression disabled. Fill in the Feign and HTTP client versions while isolating the decompression path; done means the response body is complete without requiring the workaround.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Summary

After upgrading from JDK 17 to JDK 21, Feign client calls receive truncated response data when running on x86_64 Linux servers. The same code works correctly on Windows.

Expected Behavior

Feign should receive the complete response body regardless of the operating system or architecture.

Actual Behavior
  • On Windows (dev machine): responses are complete, no truncation.
  • On x86_64 Linux server (JDK 21): response data is truncated — the tail of the response body is missing.
Workaround

Calling httpClientBuilder.disableContentCompression() when building the HttpClient fixes the truncation issue on x86_64 servers. This suggests the problem is related to gzip / content-encoding decompression in combination with JDK 21 on x86_64.

Environment
  • Feign version: (please fill in)
  • bisheng JDK version: 21.0.11 (upgraded from 17)
  • OS: Linux x86_64 (server) — affected
  • OS: Windows (dev machine) — not affected
  • HTTP client: (please fill in, e.g. Apache HttpClient / hc5)
Steps to Reproduce
  1. Set up a Feign client with JDK 21 on an x86_64 Linux server.
  2. Call an endpoint that returns a gzip-compressed response.
  3. Observe that the received response body is truncated.
  4. Add .disableContentCompression() to the HttpClient builder.
  5. Response is now complete.
Additional Context

The disableContentCompression workaround strongly indicates a JDK 21 regression in gzip/deflate decompression handling on x86_64 architecture, possibly interacting with the Feign HttpClient

Lingua principale
Java
Stelle
9.8k
Fork
2k
Merge medio
13h 7m
PR unite (30g)
37

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OpenFeign/feign

Tutte le issue di OpenFeign/feign

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.