Description
Jetty version(s)
12.0.21
Jetty Environment
ee10 / ee9 / ee8
Description
Starting in Jetty 12.0.21 the handling of empty query parameters such as /path?=
results in no entries when using HttpServletRequest.getParameterValues("")
and using HttpServletRequest.getParameter("")
returns null.
In Jetty 12.0.20 and older (this even includes Jetty 11.x, 10.x, and 9.x) this empty parameter is accessible via HttpServletRequest.getParameterValues("")
and returns an array of 1 entry (which is itself an empty string).
Note: even if the value portion of the parameter has a value, this value is inaccessible due to this regress. (eg: /path?=foo
)
Of note, more than 1 empty parameter on 12.0.20 and older (eg: /path?=&=
) is accessible via both HttpServletRequest.getParameterValues("")
(which returns an array of 2 entries, both at empty string) and using HttpServletRequest.getParameter("")
returns an empty string.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status