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
Issue #6544 - Fixing broken jetty.gzip.excludedMimeTypeList
property support
#6550
Issue #6544 - Fixing broken jetty.gzip.excludedMimeTypeList
property support
#6550
Conversation
…y support + Adding GzipHandler tests + Adding Gzip module tests + Updating jetty-gzip.xml for includedMimeTypesList and excludedMimeTypesList behavior + Adding GzipHandler support for setIncludedMimeTypesList(String) and setExcludedMimeTypesList(String Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Note: this PR does not need to be backported to 9.4.x, as 9.4.x does not support a property to include/exclude by mimetype. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't love it, but it follows a pattern set by other methods in the class.
@@ -18,8 +18,8 @@ | |||
<Set name="dispatcherTypes" property="jetty.gzip.dispatcherTypes"/> | |||
<Set name="includedMethodList" property="jetty.gzip.includedMethodList"/> | |||
<Set name="excludedMethodList" property="jetty.gzip.excludedMethodList"/> | |||
<Set name="includedMimeTypes" property="jetty.gzip.includedMimeTypeList"/> | |||
<Set name="excludedMimeTypes" property="jetty.gzip.excludedMimeTypeList"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If these methods did not exist, then the changes from #6398 should have detected that???
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah they did exist, they just had the wrong signature.
<Set name="includedMimeTypes" property="jetty.gzip.includedMimeTypeList"/> | ||
<Set name="excludedMimeTypes" property="jetty.gzip.excludedMimeTypeList"/> | ||
<Set name="includedMimeTypesList" property="jetty.gzip.includedMimeTypeList"/> | ||
<Set name="excludedMimeTypesList" property="jetty.gzip.excludedMimeTypeList"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would have preferred to split the string in the XML, but we can't if we maintain the property attribute ability to not set if not set.
jetty-servlet/src/test/java/org/eclipse/jetty/servlet/GzipHandlerTest.java
Outdated
Show resolved
Hide resolved
tests/test-distribution/src/test/java/org/eclipse/jetty/tests/distribution/GzipModuleTests.java
Outdated
Show resolved
Hide resolved
tests/test-distribution/src/test/java/org/eclipse/jetty/tests/distribution/GzipModuleTests.java
Outdated
Show resolved
Hide resolved
tests/test-distribution/src/test/java/org/eclipse/jetty/tests/distribution/GzipModuleTests.java
Outdated
Show resolved
Hide resolved
tests/test-distribution/src/test/java/org/eclipse/jetty/tests/distribution/GzipModuleTests.java
Outdated
Show resolved
Hide resolved
tests/test-distribution/src/test/java/org/eclipse/jetty/tests/distribution/GzipModuleTests.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
…6544-gziphandler-excludedMimeTypes
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
includedMimeTypesList and
excludedMimeTypesList behavior
setIncludedMimeTypesList(String) and
setExcludedMimeTypesList(String
Signed-off-by: Joakim Erdfelt joakim.erdfelt@gmail.com