Skip to content

Conversation

@pmd1nh
Copy link
Member

@pmd1nh pmd1nh commented Oct 24, 2025

Netty didn't check for the x-gzip encoding for the incoming request.

@pmd1nh
Copy link
Member Author

pmd1nh commented Oct 24, 2025

#build (view Open Liberty Personal Build - ⚠️ completed with warnings.)

Note: Target locations of links might be accessible only to IBM employees.

@LibbyBot
Copy link
Member

Code analysis and actions

DO NOT DELETE THIS COMMENT.
  • 1 product code files were changed.
  • Please describe in a separate comment how you tested your changes.

@pmd1nh
Copy link
Member Author

pmd1nh commented Oct 24, 2025

This causes the x-gzip tests to fail.

@pmd1nh
Copy link
Member Author

pmd1nh commented Oct 24, 2025

@volosied volosied self-requested a review October 24, 2025 18:15

private boolean isCompressed(String encoding) {
return "gzip".equalsIgnoreCase(encoding) || "deflate".equalsIgnoreCase(encoding);
return "gzip".equalsIgnoreCase(encoding) || "deflate".equalsIgnoreCase(encoding) || "x-gzip".equalsIgnoreCase(encoding);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this check done in Legacy? Just making sure we're not missing anything else.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also can we use HttpConstants here which looks to have values for all of these?

Copy link
Member

@volosied volosied Oct 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To add to Paul's comment, perhaps create an array/hashmap of supported compression algorithms. Loop/look up for a match?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could turn it into an enum lookup, but this constants class already has them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

5 participants