|
||||||||
|
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
||||||||
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

After a painful debugging, I found out that jgit recognizes "Accept-Encoding" header and performs gzip compression on its own in SmartOutputStream. It also uses the ServletResponse.setContentLength().
But at least on mvn hpi:run, this results in double content encoding via gzip, because either the servlet engine or some intermediate filter is also responding to the "Accept-Encoding" header and inserting GZIPOutputStream. Yet the Content-Length header value remains intact, and therefore curl that invokes the command gets the truncated output.
There are two issues here. Whoever inserting GZIPOutputStream needs to mangle the Content-Length}} header (or at least voids that), and second, I need to think about ways to avoid double gzip encoding.