[jboss-jira] [JBoss JIRA] (WFLY-8643) RestEasy GZIP Compression Not Setting Content-Encoding
Marek Kopecký (Jira)
issues at jboss.org
Wed Jan 16 06:47:11 EST 2019
[ https://issues.jboss.org/browse/WFLY-8643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13682896#comment-13682896 ]
Marek Kopecký commented on WFLY-8643:
-------------------------------------
[~xhammond]: I'm not able to reproduce this issue on WF15:
# ./standalone.sh -Dresteasy.allowGzip=true
# Deploy application with {code:java}
@Path("/")
public class Resource {
@GET
@Path("/a")
@GZIP
public String a(@QueryParam("a") String a) {
return a;
}
}
{code}
# {noformat}[mkopecky at dhcp-10-40-5-71 single-application] (master *+)$ curl -H "Accept-Encoding: gzip, deflate" -v -X GET http://localhost:8080/jaxrs-wf/a?a=a
...
> GET /jaxrs-wf/a?a=a HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.55.1
> Accept: */*
> Accept-Encoding: gzip, deflate
>
< HTTP/1.1 200 OK
< Content-Encoding: gzip
< Connection: keep-alive
< Content-Type: application/octet-stream
< Content-Length: 21
< Date: Wed, 16 Jan 2019 11:31:38 GMT
<
Warning: Binary output can mess up your terminal. Use "--output -" to tell
Warning: curl to output it to your terminal anyway, or consider "--output
Warning: <FILE>" to save to a file.
* Failed writing body (0 != 21)
* stopped the pause stream!
* Closing connection 0
[mkopecky at dhcp-10-40-5-71 single-application] (master *+)$ {noformat}
[~baranowb] (cc [~asoldano], [~pmackay]): Can you close this issue as out-of-date? If [~xhammond] still see this issue, he can reopen this issue with a reproducer (for example zip archive with simple maven project and steps to reproduce).
> RestEasy GZIP Compression Not Setting Content-Encoding
> ------------------------------------------------------
>
> Key: WFLY-8643
> URL: https://issues.jboss.org/browse/WFLY-8643
> Project: WildFly
> Issue Type: Bug
> Components: REST
> Affects Versions: 11.0.0.Alpha1
> Environment: Encountered the issue running in a Windows 7 environment
> Reporter: Xavier Hammond
> Assignee: Bartosz Baranowski
> Priority: Major
>
> The Content-Encoding is not set to gzip when a RESTful service endpoint returns GZIP compressed data.
> This only occurs when I deploy to the Wildfly 11 Alpha release. No issues with Wildfly 10 Final.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list