UNSUBSCRIBE

Jeff Daly
Lockheed Martin
410 National Business Parkway
Annapolis Junction, MD 20701
Email: [email protected]<mailto:[email protected]>
Phone: 410-379-2360

From: [email protected] <[email protected]> On 
Behalf Of Joakim Erdfelt
Sent: Thursday, August 8, 2019 11:09 AM
To: JETTY user mailing list <[email protected]>
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

https://github.com/eclipse/jetty.project/issues/382

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.

With the most recent being https://github.com/eclipse/jetty.project/issues/2912

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

Joakim Erdfelt / [email protected]<mailto:[email protected]>


On Thu, Aug 8, 2019 at 5:01 AM Kumar, Samrat (CWM-NR) 
<[email protected]<mailto:[email protected]>> 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();
        gzipHandler.addIncludedMethods("GET","POST","PUT");
        gzipHandler.setBufferSize(2048);
        gzipHandler.setServer(server);

        server.setHandler(gzipHandler);

        return server;

}

Any help would be appreciated.




Regards,
Samrat


______________________________________________________________________

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
[email protected]<mailto:[email protected]>
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users

Reply via email to