Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] EXTERNAL: Re: Request decompression not working with jetty-server 9.2.28.v20190418



Jeff Daly

Lockheed Martin

410 National Business Parkway

Annapolis Junction, MD 20701

Email: jeff.daly@xxxxxxxx

Phone: 410-379-2360


From: jetty-users-bounces@xxxxxxxxxxx <jetty-users-bounces@xxxxxxxxxxx> On Behalf Of Joakim Erdfelt
Sent: Thursday, August 8, 2019 11:09 AM
To: JETTY user mailing list <jetty-users@xxxxxxxxxxx>
Subject: EXTERNAL: Re: [jetty-users] Request decompression not working with jetty-server 9.2.28.v20190418


The Request Auto-Decompression via GzipHandler enhancement was first reported via issue



Which was implemented and made available starting in Jetty version 9.4.0.v20161208


Several subsequent bugs and enhancements to that feature have been fixed since that original release.



That was fixed and showed up in Jetty release 9.4.13.v20181111

Joakim Erdfelt / joakim@xxxxxxxxxxx



On Thu, Aug 8, 2019 at 5:01 AM Kumar, Samrat (CWM-NR) <samrat.kumar@xxxxxxxxx> wrote:

Hi All,


We have upgraded our camel-core  library from 2.14.0 to 2.18.0 and Jetty-server from 8.1.15 to 9.2.28. Our downstream call our API with compressed XML content, after this upgrade request decompression is not working and XML unmarshaller fails as it can’t parse binary content.


We are facing this issue came only after this upgrade, before this upgrade decompression was happening automatically.


I had tried with Jetty-server 9.4.14 as well but then request started failing with Exception “501, method not implemented”, after analysis came to know  content-encoding:gzip is not supported and it throw exception if request has header content-encoding:gzip.



I tried below approach after studying on google but with no success.



public class ConfigServerJettyHttpComponent extends JettyHttpComponent9{


       private static final Logger log = LoggerFactory.getLogger(ConfigServerJettyHttpComponent.class);


        protected Server createServer() {


        GzipHandler gzipHandler = new GzipHandler();







        return server;




Any help would be appreciated.









This email is intended only for the use of the individual(s) to whom it is addressed and may be privileged and confidential.
Unauthorised use or disclosure is prohibited. If you receive this e-mail in error, please advise immediately
and delete the original message. This message may have been altered without your or our knowledge
and the sender does not accept any liability for any errors or omissions in the message.

Emails are monitored by supervisory personnel in jurisdictions where monitoring is permitted.
Such communications are retained and may be produced to regulatory authorities or others with legal rights to the information.

jetty-users mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top