Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update grizzly to 2.3.29 and handle gzip/lzma content-encoding of requests PAYARA-1288 PAYARA-1441 #1425

Merged
merged 1 commit into from
Mar 3, 2017

Conversation

matthiasblaesing
Copy link
Contributor

This change updates the grizzly dependency to the 2.3.29. This enables
handling of content-encodings for incoming requests by the server.
The ability to compress responses has already been part of glassfish,
but response handling did not include the ability to handle gzip/lzma
compressed requests.

This was requested in #1038 [2] and also requested for glassfish [0].

Grizzly 2.3.28 gained decompression support[1], but introduced a
regression. In this version the incoming datastream was decompressed,
but the Content-Encoding header was left in place. This in turn lead
to servlet filters/applications to asume the stream was still
compressed and triggered a second decompression step [3].

With grizzly 2.3.29 defaults were changed to match 2.3.27 (making
request decompression opt-in) and add the ability to remove the
problematic header line (opt-in too).

The changes are:

  • nucleus/pom.xml:

    • Update grizzly dependecy
  • nucleus/grizzly/config/src/main/java/org/glassfish/grizzly/config/GenericGrizzlyListener.java:

    • Enable removal of content-encodings from the header field,
      that were handled by the decompression filters
    • Enable decompression of requests, if compression is enabled
  • appserver/grizzly/glassfish-spdy/src/main/java/org/glassfish/grizzly/extras/spdy/SpdyAddOnProvider.java

    • ALL_SPDY_VERSIONS is not visible anymore and needs a work-around

This is a followup to the support request 229, CLA was send in parallel.

[0] https://java.net/jira/browse/GLASSFISH-5258
[1] https://java.net/jira/browse/GRIZZLY-1669
[2] #1038
[3] #1186
[4] https://java.net/jira/browse/GRIZZLY-1875?focusedCommentId=393843&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-393843

…uests

This change updates the grizzly dependency to the 2.3.29. This enables
handling of content-encodings for incoming requests by the server.
The ability to compress responses has already been part of glassfish,
but response handling did not include the ability to handle gzip/lzma
compressed requests.

This was requested in payara#1038 [2] and also requested for glassfish [0].

Grizzly 2.3.28 gained decompression support[1], but introduced a
regression. In this version the incoming datastream was decompressed,
but the Content-Encoding header was left in place. This in turn lead
to servlet filters/applications to asume the stream was still
compressed and triggered a second decompression step [3].

With grizzly 2.3.29 defaults were changed to match 2.3.27 (making
request decompression opt-in) and add the ability to remove the
problematic header line (opt-in too).

The core changes here are:

- nucleus/pom.xml:
  Update grizzly dependecy

- nucleus/grizzly/config/src/main/java/org/glassfish/grizzly/config/GenericGrizzlyListener.java:
  - Enable removal of content-encodings from the header field,
    that were handled by the decompression filters
  - Enable decompression of requests, if compression is enabled

- appserver/grizzly/glassfish-spdy/src/main/java/org/glassfish/grizzly/extras/spdy/SpdyAddOnProvider.java
  - ALL_SPDY_VERSIONS is not visible anymore and needs a work-around

[0] https://java.net/jira/browse/GLASSFISH-5258
[1] https://java.net/jira/browse/GRIZZLY-1669
[2] payara#1038
[3] payara#1186
[4] https://java.net/jira/browse/GRIZZLY-1875?focusedCommentId=393843&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-393843
@payara-ci
Copy link
Contributor

Can one of the admins verify this patch?

@mulderbaba
Copy link
Contributor

jenkins test please

@payara-ci
Copy link
Contributor

All tests have passed

@OndroMih OndroMih added the PR: Awaiting CLA Contributor does not have a CLA or has submitted an unconfirmed CLA. label Mar 1, 2017
@smillidge smillidge added PR: CLA CLA submitted on PR by the contributor and removed PR: Awaiting CLA Contributor does not have a CLA or has submitted an unconfirmed CLA. labels Mar 1, 2017
@smillidge smillidge added this to the Payara 172 milestone Mar 1, 2017
@smillidge smillidge changed the title Update grizzly to 2.3.29 and handle gzip/lzma content-encoding of requests Update grizzly to 2.3.29 and handle gzip/lzma content-encoding of requests PAYARA-1288 PAYARA-1441 Mar 3, 2017
@smillidge smillidge merged commit 4b1eb74 into payara:master Mar 3, 2017
lprimak pushed a commit to flowlogix/Payara that referenced this pull request Jul 5, 2017
…uests (payara#1425)

Update grizzly to 2.3.29 and handle gzip/lzma content-encoding of requests PAYARA-1288 PAYARA-1441
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: CLA CLA submitted on PR by the contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants