-
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
Jetty 12 IllegalArgumentExeption when setting a HTTP header to null #10508
Comments
When you use Using Note: If you had used |
The linked spec issue jakartaee/servlet#159 is about |
The javadoc for the various setHeader / addHeader (and variants) calls out behavior when nulls are passed as parameters. PR incoming. |
Opened PR #10510 to address this |
Fixed via #10510 |
Jetty version(s)
12.0.1
Description
In jetty 12.0.1 calling HttpServletResponse.addHeader("name", null) throws an IllegalArgumentException
java.lang.IllegalArgumentException: null value
at org.eclipse.jetty.http.HttpFields$Mutable.add(HttpFields.java:901) ~[?:?]
at org.eclipse.jetty.ee10.servlet.ServletApiResponse.addHeader(ServletApiResponse.java:217) ~[?:?]
This used to work till 12.0.0 in Jetty, works in Tomcat and i also found this description jakartaee/servlet#159 This seems to be a regression
The text was updated successfully, but these errors were encountered: