-
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
Change of behaviour with HttpServletResponse.sendError(0) in EE10 #12609
Comments
We should probably validate that the status is 100-599 or one of the known exceptional codes (-1 for abort). |
@lachlan-roberts looks like this change was deliberate: see #9955 |
Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
Maybe we set upper limit at 999, because rfc9110 says: "Implementations often use three-digit integer values outside of that range (i.e., 600..999) for internal communication of non-HTTP status".
This looks to be only for |
Issue #12609 - better validation for response codes in setStatus
Jetty version(s)
12.0.x
Jetty Environment
ee10
Description
I noticed that
resp.sendError(0)
has a change of behaviour in EE10 compared to EE8 and Jetty 9.4Previously Jetty would throw IAE for status 0.
Now this will send back a 200 response with no body.
The text was updated successfully, but these errors were encountered: