You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
I noticed that resp.sendError(0) has a change of behaviour in EE10 compared to EE8 and Jetty 9.4
Previously Jetty would throw IAE for status 0.
Now this will send back a 200 response with no body.
java.lang.IllegalArgumentException
at org.eclipse.jetty.ee8.nested.Response.setStatus(Response.java:666)
at org.eclipse.jetty.ee8.nested.HttpChannelState.sendError(HttpChannelState.java:782)
at org.eclipse.jetty.ee8.nested.Response.sendError(Response.java:449)
at org.eclipse.jetty.ee8.nested.Response.sendError(Response.java:422)
at org.example.DemoServlet.service(DemoServlet.java:16)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:590)
at org.eclipse.jetty.ee8.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1146)
at org.eclipse.jetty.ee8.servlet.ServletHolder.handle(ServletHolder.java:640)
The text was updated successfully, but these errors were encountered:
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: