-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
SizeLimitHandler does not enforce 0 responseLimit #10337
Comments
The release 9.4.52 is a paid sponsored release on a version that is at End of Community Support. |
I understand, just thought to ask. It certainly is an edge condition with a reasonable workaround of just using 1. Bear in mind, this observation would be true for 10.0 through 12.0 from what I can see in the source tree, but it would be lovely if it came back to 9.4.X the next time the opportunity presents itself. |
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Issue #10337 - fixes to SizeLimitHandler
Issue #10337 - fixes for SizeLimitHandler
Completed in PR #10342. |
Jetty version(s)
jetty-all-compact3-9.4.51.v20230217.jar
Jetty Environment
N/A
Java version/vendor
(use: java -version)
java version "1.8.0_381"
Java(TM) SE Runtime Environment (build 1.8.0_381-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.381-b09, mixed mode)
OS type/version
Windows (Behavior is OS agnostic)
Description
We've deployed the SizeLimitHandler added in #8774 and observed that a 0 responseLimit is not being enforced.
This behavior is at odds with SizeLimitHandler documentation:
and has code smell in the implementation:
The test coverage in SizeLimitHandlerTest does not appear to cover a 0 case so I am unsure if this behavior is intentional - meaning the doc should be updated - or unintentional, and the implementation should be updated.
We are definitely aware of the EOCS status of Jetty 9.4.XX - but you seem to be building a project right now for 9.4.52 that includes other tweaks to SizeLimitHandler - ec197a2
Can you confirm behavior and sneak this in?
How to reproduce?
Use a SizeLimitHandler with a _responseLimit of 0, observe the limit is not enforced.
Use a SizeLimitHandler with a _responseLimit of 1, observe the limit is enforced.
The text was updated successfully, but these errors were encountered: